Skipping Tasks Listed as Dependencies in Gulp -
i have looked on documentation , npm try find solution this, have had no luck. have option skip tasks list dependencies when running specific task. example, if have following:
gulp.task('prerun', function(){ // cleaning, installation, etc. }); gulp.task('run', ['prerun'], function(){ // stuff }); gulp.task('watch', function(){ gulp.watch('glob/glob/**', ['run']); }); i able have gulp.watch execute run without having touch overhead involved in prerun. @ possible in gulp?
what's helper task? use approach eliminate dependencies in watch tasks. example can this:
gulp.task('prerun', function(){ // cleaning, installation, etc. }); gulp.task('run', ['prerun'], function(){ gulp.start('run-dev'); }); gulp.task('run-dev', function() { // run stuff }); gulp.task('watch', function(){ gulp.watch('glob/glob/**', ['run-dev']); }); the prerun task can use dependency watch task if needed:
gulp.task('watch', ['prerun'], function(){ gulp.watch('glob/glob/**', ['run-dev']); }); ciao ralf
Comments
Post a Comment