gener8r
v0.5.0
Published
allows you to create file templates and generate them with a command
Downloads
3
Readme
Gener8r
Installation
$ npm i -g gener8r
Usage
$ gener8r <templateName> <outputPath> [prop1, prop2, ...]
Supply a template and an output path. All remaining arguments will be mapped to props declared in the template.
Custom templates
There aren't many built in templates so you are going to need to make your own. Gener8r will look for a .templates
folder recursively up your folder ancestry. It will find templates in nearer .templates folders first so you can override existing templates with local ones.
Example:
- /Users/thezanke/projects/some_project/.templates/react-component.js
- /Users/thezanke/.templates/react-component.js
- /path/to/node_modules/gener8r/templates/react-component.js
Contributing
PLEASE submit pull requests, fork the project, or recreate it from scratch better than it is. But if you do... let me know so I can use your version.