Using Grunt

Grunt is a JavaScript test runner that was built to automate the repetitive tasks that we have to run during development. It can be used for tasks like minification, compilation, linting, unit testing, or any other tasks that your project needs. The Grunt ecosystem has hundreds of plugins that you can choose from.

Before using Grunt, we need to install the CLI globally. This doesn't install Grunt, but it will run the version of Grunt that was installed next to the configuration file, Gruntfile.js. In this way, we can have multiple versions of Grunt installed. To install the tool, we are going to use NPM once again, so, run the following command in the terminal window:

npm install -g grunt-cli

In the next few steps, we are going to add ...

Get WebStorm Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.