Generate a Yeoman generator
Latest commit d2c78d6 Feb 27, 2018
mischah and SBoudrias Improve eslint setup (#220)
* Setup prettier via ESLint config and plugin

So we have the same settings like the generated generator.
Related to #219

* Run prettier

generator-generator Build Status Coverage Status

Yeoman generator generating a Yeoman generator

Yo dawg, I heard you like generators?

Getting started

  • Install: npm install -g generator-generator
  • Run: yo generator


  • yo generator shows a wizard for generating a new generator
  • yo generator:subgenerator <name> generates a subgenerator with the name <name>

What do you get?

Scaffolds out a complete generator directory structure for you:

├── generators/
│   └── app/
│       ├── index.js
│       └── templates/
│           └── dummyfile.txt
├── .editorconfig
├── .eslintignore
├── .gitattributes
├── .gitignore
├── .travis.yml
├── .yo-rc.json
├── package.json
└── __tests__/
    └── app.js

Refer to our documentation to learn more about creating a Yeoman generator.

Running tests

Run npm test to run your test suite.

These tests will be run automatically in your git repository if you connect Travis CI. You can also track test coverage using Coveralls.


See the contribution docs.

When submitting an issue, please follow the guidelines. It is especially important to make sure Yeoman is up-to-date, and providing the command or commands that cause the issue.


MIT © Pascal Hartig and other contributors