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

The new custom generator

We are going to create a custom generator that will scaffold a single-page web application. The project will include jQuery, Bootstrap, and Handlebars that will be managed via Bower. The project is also going to use Grunt, which will run and watch files for changes, and start a Connect LiveReload server for development.

Installing the generator-generator

First, we need to install the generator to create our generator. Open the terminal and execute the following command:

$ npm install -g generator-generator

Note

The current version used is 0.4.4.

This command will install the Yeoman generator-generator globally, so you can use the yo generator command from within any directory.

Using generator-generator

To create a new Yeoman ...

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