Created
August 23, 2014 05:52
-
-
Save cognitom/ad5f464df97cc414b177 to your computer and use it in GitHub Desktop.
タスクランナーの連続実行を抑止する: gulp.js, Grunt ref: http://qiita.com/cognitom/items/c6d821d72664f90f1e11
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"); | |
gulp.task('watch', function(){ | |
gulp.watch('coffee/*.coffee', ['coffee']); | |
}); |
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"); | |
gulp.task('watch', function(){ | |
var gaze_opt = { | |
debounceDelay: 10000 // wait 10 sec after the last run | |
}; | |
gulp.watch('coffee/*.coffee', gaze_opt, ['coffee']); | |
}); |
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
watch: { | |
scripts: { | |
files: 'coffee/*.coffee', | |
tasks: ['coffee'], | |
options: { | |
debounceDelay: 10000, // wait 10 sec after the last run | |
}, | |
}, | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment