-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

JavaScript and JSON Essentials
By :

By integrating the power of gulp
plugins and gulp
task together, we can create a flow of consecutive tasks that can run parallel or sequentially as per our requirements. Though we have the gulp task dependency feature, we are going to use the npm run-sequence
module to run the task in sequence. This helps us to structure the task easily and reduce the complexity when the number of tasks increases over time.
Run the following command to install run-sequence
:
npm install run-sequence --save-dev
With respect to its usage, the only thing we need to remember is that every gulp task should either return a stream or promise, or should be handled using callback. Let's justify this statement and leverage the power of gulp automation by creating three simple tasks in a flow:
test-node-app
directory is present at the root level of gulpfile.js
. Refer to the Chapter 10, Configuring the Task Runner Using JSON...Change the font size
Change margin width
Change background colour