At this point, we have some task compressed into a single file. All this compression will be performed when we run the gulp command. We can group the preconfigured task to be run into one single command. Suppose we have three tasks already defined: process-styles, other-task, and some-other-task. Now we just need to define all these tasks into a single new task:
// run all tasks gulp.task('run', ['process-styles', 'other-task', 'some-other-task']);
Save and press Enter the gulp run command line to execute all the tasks defined.
That's great, but we still need to enter commands manually. Rumpelstiltskin, that was not part of the deal! Don't worry, we have one last surprise for you—gulp.watch(). With this method, you could ...