generator-yeats-generator
v0.0.5
Published
my generator to generate a Yeoman generator
Downloads
2
Maintainers
Readme
generator-mygenerator
Generate a Yeoman generator
what is mygenerator
mygenerator and generator-generator, is used to more easily generate yeoman generator tool.
Different from the official generator which copying and templating files one by one, I think that the interaction with the user to generate a complete phase configuration, all files for batch processing, files beginning with _
need templating, or direct copy. The advantage of this:
- Do not need to change your code when modify the template files. It really relaxing.
- It is convenient to process the template directory automatically by the prefix
_
and configuration props onthis
, you don't need to use template or copy files. - Clear directory structure
Getting started
- Install:
npm install -g generator-mygenerator
- Run:
yo mygenerator
What do you get?
Scaffolds out a complete project directory structure for you:
.
├── generators
│ └── app
│ ├── index.js
│ └── templates
│ ├── _bower.json
│ ├── _package.json
│ └── index.js
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .jshintrc
├── .travis.yml
├── .yo-rc.json
├── package.json
├── README.md
└── test
└── test-app.js
License
MIT © Pascal Hartig [email protected] and other contributors