This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('element-identifier').plugin({ | |
option1: 'value1', | |
option2: 'value2', | |
option3: 'value3' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yepnope({ | |
load: '/url/to/your/script.js', | |
callback: function (url, result, key) { | |
$('body').initPlugins(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var sass = require('gulp-sass'); | |
var lr = require('tiny-lr'); | |
var http = require('http'); | |
var path = require('path'); | |
var ecstatic = require('ecstatic'); | |
var tlr = lr(); | |
var livereload = function (evt, filepath) { | |
tlr.changed({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// browserify | |
var browserify = require('browserify'); | |
var es6ify = require('es6ify'); | |
// gulp stuff | |
var gulp = require('gulp'); | |
var livereload = require('gulp-livereload'); | |
var source = require('vinyl-source-stream'); | |
var jshint = require('gulp-jshint'); | |
var livereload = require('gulp-livereload'); | |
var watch = require('gulp-watch'); |