Created
June 4, 2015 13:54
-
-
Save suisho/49840d4440b991e4e44f to your computer and use it in GitHub Desktop.
gulpポリスに怒られないタスクの書き方:自動bowerインストール編 ref: http://qiita.com/suisho/items/92c8cbf557597e3b3f49
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
gulp.task('install', function(cb){ | |
gulp.src(["./bower.json"]) | |
.pipe(install()) | |
.on('finish', function(){ | |
cb(); | |
}); | |
}); | |
}); |
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
gulp.task('install', function(cb){ | |
bower.commands.install() | |
.on("log", function(log){ | |
gutil.log(log.message); | |
}) | |
.on("end", function(){ | |
cb(); | |
}); | |
}); |
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
"use the bower module directly" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment