Created
October 5, 2014 02:22
-
-
Save cognitom/f85932e8bca48194efe8 to your computer and use it in GitHub Desktop.
gulpfiles ref: http://qiita.com/cognitom/items/dfbac22c02a7ffa957aa
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
$ npm install -g gulp | |
$ npm install -g gulp-straw |
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
$ straw setup |
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
$ straw install gulpfile | |
$ straw install task/css |
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
$ straw install cognitom:gulpfile | |
$ straw install cognitom:task/css |
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 del = require('del'); | |
var runSequence = require('run-sequence'); | |
var requireDir = require('require-dir'); | |
var dir = requireDir('./task'); | |
gulp.task('default', function (cb){ | |
runSequence('clean', 'icon', 'build', cb); // gulp.js 3.xでの書き方 | |
}); | |
gulp.task('clean', function(cb){ | |
del(['./dist'], cb); | |
}); | |
gulp.task('watch', function(){ | |
gulp.watch(['src/icon/*.svg'], { debounceDelay: 1000 }, ['icon']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment