O'Reilly logo

WebStorm Essentials by Den Patin, Stefan Rosca

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required