0.5.0 • Published 8 years ago

gener8r v0.5.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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.

0.5.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago