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

Anatomy of a generator


Yeoman generators run in a Node.js environment and are managed by npm. They are executed from the command line, have a powerful prompting library, and leverage the Node.js API for functionality. Generators are responsible for one and only one thing—to take user input and output generated files based on that input.

Types of generators

Generally, there are two types of generators:

  • Copiers: It simply copies boilerplate files from one location to another

  • Advanced: It has customizable options, remote dependencies, and more