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.
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.
The following steps take us through installing ...