Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.31 KB

generators.md

File metadata and controls

32 lines (22 loc) · 1.31 KB

Sub-Generators

About Sub-Generators

This project, generator-luke, is considered to be a "Yeoman generator". However, it is capable of generating different types of scaffolds for various types of projects. It is, therefore, subdivided into "sub-generators", with each one generating a specific project type or portion thereof.

When you run yo luke, you are, technically, running the generator. However, behind the scenes, you are also running the default sub-generator ("app"), which could also be run using yo luke:app.

While the default sub-generator creates a minimal project scaffold, which is useful for most of my projects, there are other options available. Some options produce even less than the minimal scaffold, while others create more advanced scaffolds for specific types of projects.

Sub-Generator Types

There are two fundamental types of sub-generators:

Note: Yeoman does not officially recognize this project's terminology for "project scaffolds" and "partials", it is my own terminology.

Further Reading