Skip to content

Instantly share code, notes, and snippets.

@cognitom
Created August 23, 2014 05:52
Show Gist options
  • Save cognitom/ad5f464df97cc414b177 to your computer and use it in GitHub Desktop.
Save cognitom/ad5f464df97cc414b177 to your computer and use it in GitHub Desktop.
タスクランナーの連続実行を抑止する: gulp.js, Grunt ref: http://qiita.com/cognitom/items/c6d821d72664f90f1e11
var gulp = require("gulp");
gulp.task('watch', function(){
gulp.watch('coffee/*.coffee', ['coffee']);
});
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']);
});
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