O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

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

Installing a plugin

All of the functionality that can be provided by Grunt is housed in the plugins that are made available in the form of Node.js packages. In this recipe, we'll run through the process of installing a plugin, which will prepare us for all the recipes that are to follow.

For our example, we'll install the contrib-jshint (0.10.0) plugin. The same steps used to install this plugin can be used to install any of the other plugins available in the plugin package index.

Getting ready

In this example, we'll work with the basic project structure we created in the Setting up Grunt on a project recipe of this chapter Be sure to refer to it if you are not yet familiar with it's contents.

How to do it...

The following steps take us through installing ...

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