Component Generator CLI
STATUS: Not ready for use.
A poem to discourage you:
Do not download in a pack. Do not download in a gem. Please do not download, no matter where or when.
Purpose of this is to create scaffolding for multiple components easily
Getting Started
Install
npm i -g component-generator-cli
Use
compgen
starts the component-generator
Commands
Summary
N | add | [--preview/--p] , [--config/--c] | compgen~$ add Com Pon Ents --config path/to/my/config.json |
N | fill-current | [--overwrite/--o] | compgen~$ fill-current --o |
N | undo | | compgen~$ undo |
Detailed
compgen~$ add [...components to add] --preview --config /path/to/config.json
add
→ Generate variadic number of components
--preview | --p | N/A | See changes before executing |
--config | --c | /path/to/config.json → Overwrite defaults with your own custom config | Specify your own config for file names, extensions, code-templates, ignored directories and more |
compgen~$ fill-current
fill-current
→ Fill current directories with template files (useful if you've already mkdir
'd all of your components)
--overwrite | --o | Replaces matching files with new content |
compgen~$ undo
undo
→ Revert all previous actions
Config
Resources
Example