Skip to content

Instantly share code, notes, and snippets.

@suisho
Created June 4, 2015 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suisho/49840d4440b991e4e44f to your computer and use it in GitHub Desktop.
Save suisho/49840d4440b991e4e44f to your computer and use it in GitHub Desktop.
gulpポリスに怒られないタスクの書き方:自動bowerインストール編 ref: http://qiita.com/suisho/items/92c8cbf557597e3b3f49
gulp.task('install', function(cb){
gulp.src(["./bower.json"])
.pipe(install())
.on('finish', function(){
cb();
});
});
});
gulp.task('install', function(cb){
bower.commands.install()
.on("log", function(log){
gutil.log(log.message);
})
.on("end", function(){
cb();
});
});
"use the bower module directly"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment