O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Automating tasks

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required