It is pretty simple to create a Gulp task which will run multiple other Gulp tasks:
gulp.task("build", ['buildTS', 'copyJSLibraries',
This creates a new Gulp task named build. The argument to the task is an array and each element of the array is a string which represents another Gulp task. We saw this approach with buildTS task built in Part 3. In that part, the tslint task was executed as part of the buildTS task. In this case, the build task does not have its own functionality it just combines together the existing tasks.
Run this task:
You'll see something like this:
All the tasks are run, creating a build.
The next part of this series will show you how to delete everything in the build directory before creating the build. I call this approach a clean build.
All the information is already available, so sign up for our newsletter to start reading right away.