Created
March 26, 2015 18:58
-
-
Save joshuakfarrar/3c92f2e6eef5d729b9ab to your computer and use it in GitHub Desktop.
This file contains hidden or 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 bower = require('gulp-bower'); | |
var del = require('del'); | |
gulp.task('clean', function(cb) { | |
del([ | |
'bower_components' | |
], cb); | |
}); | |
gulp.task('bower:install', ['clean'], function() { | |
return bower(); | |
}); | |
gulp.task('bower', ['bower:install'], function() { | |
// install require.js, jquery, and underscore | |
gulp.src([ | |
'./bower_components/jquery/dist/jquery.min.js', | |
'./bower_components/jquery/dist/jquery.min.map', | |
'./bower_components/requirejs/require.js', | |
'./bower_components/backbone-amd/backbone-min.js', | |
'./bower_components/backbone-amd/backbone-min.map', | |
'./bower_components/underscore-amd/underscore-min.js', | |
'./bower_components/underscore-amd/underscore-min.map' | |
]).pipe(gulp.dest('./public/js/lib')); | |
}); | |
gulp.task('default', ['bower']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment