Chapter 10. Configuring the Task Runner Using JSON
Nowadays, phases such as unit testing, code integration, and creating a deployable optimized build are staple parts of the application development life cycle. Consider any code repository on GitHub: the community looks for test cases (especially the specs.js
files) and the build status percentage (whether it's a pass or fail) before using any library or module. It is obvious that without such checksum tasks, a developer is not able to provide a benchmark for the stability and performance of any application module. In this chapter, we are going to learn about:
- What task runners are and why they are required
- What
gulp.js
is and what purpose it serves - Performing unit testing using Mocha framework and
gulp.js
- Automating all unit test cases using JSON configuration
So, let's get started!