This chapter will cover creating custom Yeoman generators with the Yeoman generator-generator. By the end of this chapter, you will be able to create a customizable Yeoman generator that is installed using Node's package manager (npm) and made available to the community.
In this chapter, we will leverage the Yeoman API to handle processing files, install Bower components, prompt for user input, and test the generator's output using Mocha, which is a feature-rich JavaScript test framework that runs on Node.js. By the end of this chapter, you will be able to save time and money developing your next project by creating a custom Yeoman generator.
In this chapter, we are going to cover the following:
Creating custom Yeoman generators that take multiple answers from command-line prompts and scaffold a modern web application
Using the API to download and install libraries from Bower into the application
Writing tests that verify the directory structure and content of files...