Grunt

Grunt is a JavaScript tool to create and automate project tasks. It solves the same problems as Ant for Java, Rake for Ruby, and so on, but in the JavaScript language.

It is widely used by the Node.js community, and it is gaining a lot of traction on all sorts of JavaScript projects.

We are going to use it to make our lives simpler and more automated, so that we can focus more on the development time!

Installation

Grunt is also a Node.js package, so its installation is pretty simple once you have Node.js installed (as explained in Chapter 4, Asynchronous Testing – AJAX).

Open up a terminal and invoke Node.js's package manager to install grunt's command-line interface and make it available globally:

$ npm install -g grunt-cli

At the project's ...

Get Jasmine JavaScript Testing now with O’Reilly online learning.

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