gulp.watch for true automation - zhentian-wan/MEANAppsFiles GitHub Wiki
What we want is once file is changed, the system can do the task automatically.
gulp.task('watch', function() {
gulp.watch('./public/**/*.jade', ['jade']);
gulp.watch('./public/**/*.js', ['js']);
gulp.watch('./server/**/*.js', ['js']);
gulp.watch('./server.js', ['js']);
gulp.watch('./public/css/*.styl',['stylus']);
gulp.watch('./public/css/*.css',['css']);
});