Chapter 10. Advanced Yeoman generators
This chapter covers
- Sub-generators
- Yeoman’s file system utilities
- User configurations
- Generator composition
So far you’ve created a good setup to scaffold new projects. You optimized the build tools for rapid development cycles and created your own components to add to the project. But creating a new project isn’t something you do on a daily basis. Depending on the kind of project you’re developing, you’ll spend weeks, months, or even years expanding, maintaining, and creating new features for it.
And even if your projects start out the same, over the course of time, they’re going to differ heavily from each other, both in content and in the structure you’re going to use. Think of deciding on one module definition system (UMD, AMD, or CommonJS) at the start of your project. With the addition of each new module, the structural similarities between projects get fewer and fewer. As you switch between projects, or newcomers join the development phase over time, adding new modules or files correctly to your existing project will be subject to friction.