O'Reilly logo

Learning Yeoman by Jonathan Spratley

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

My custom Grunt plugin

Now that we have an overview on using Grunt and the power that it can bring to a new or existing project, let's use the Yeoman Grunt plugin generator to create a custom Grunt plugin that will allow the use of custom created tasks in any project.

Installing the generator-gruntplugin

To install the Yeoman Grunt plugin generator, execute the following command:

$ npm install -g generator-gruntplugin

The preceding command will install the Grunt plugin generator globally on your system, allowing the use of the yo gruntplugin command from within any directory.

Usage

To use the Grunt plugin generator, execute the following command:

$ yo gruntplugin

The directory structure

The directory structure that is created contains very few files ...

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