concept sub - generator in category javascript

appears as: sub-generators, sub-generator, A sub-generator, sub-generators
Front-End Tooling with Gulp, Bower, and Yeoman

This is an excerpt from Manning's book Front-End Tooling with Gulp, Bower, and Yeoman.

10.1.1. The concept of sub-generators

Sub-generators are part of the Yeoman generator package and deal with smaller things accompanying the bigger, more complete app generator. They’re meant to supplement the app generator with additional scaffolding or to scaffold additional material to an existing project that has been generated with Yeoman. Think of having an app generator that creates a new project (like the one you created in chapter 5). This provides you with the necessary scaffolding for a new project. Sub-generators add files and templates to the existing project; for example, new CommonJS or AMD modules.

Figure 10.1. How sub-generators are structured inside a Yeoman generator. The full project generator is inside the app folder. The sub-generator’s folder is adjacent to it and holds the name of the sub-generator itself. Inside are its own assembly instructions and templates.