Book Image

Learning Yeoman

By : Jonathan Spratley
Book Image

Learning Yeoman

By: Jonathan Spratley

Overview of this book

Table of Contents (17 chapters)
Learning Yeoman
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Modern Workflows for Modern Webapps
Index

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 generator, execute the following command in the directory of your generator:

$ yo generator

The preceding command will ask questions about the generator as shown in the following screenshot:

Note

Enter your Github username and a different base generator...