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

Setting up a basic plugin project

At the base of every Grunt plugin lies a Node.js project that contains information about its purpose, version, dependencies, and so forth. Due to the basic project structure for all Grunt plugins being pretty much the same, we'll make use of a project generator to provide us with a starting point.

In this recipe, we'll make use of the Yeoman project's scaffolding tool to generate our basic Grunt plugin project. It provides generators for a large variety of project setups, all of which have Grunt as their core automation tool.

Tip

You can learn more about the Yeoman project at the following URL:

http://yeoman.io/

Getting started

The only requirement for this recipe is a global installation of Node.js, with Grunt installed ...

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