Task automation with GulpJS
Before talking about unit testing automation (that is the main objective of this chapter), we need to introduce another concept: task automation.
What do we really mean by the term task automation? Well, we need to talk about what we need to do when delivering a web application to production.
The one and only true objective of web development is to publish a fully functioning and optimized web application. In this regard, there are several well-known best practices that have to be respected, at least:
- Source code quality verification: Using tools like JSLint or JSHint, we need to check the quality of our source code in search of possible style convention deficiencies as well as structural problems
- Source file concatenation: We need to build a unique source code file in order to include a single
script
tag in the corresponding web page (remember that every script tag is a call to the web server, thus a delay in the page load process; it's important to reduce...