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
npm i -g component-generator-cli
compgen
starts the component-generator
Available | Command | Options | Example |
---|---|---|---|
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 |
add
→ Generate variadic number of components
Option | Alias | Arguments | Description |
---|---|---|---|
--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 |
fill-current
→ Fill current directories with template files (useful if you've alreadymkdir
'd all of your components)
Option | Alias | Description |
---|---|---|
--overwrite | --o | Replaces matching files with new content |
undo
→ Revert all previous actions
Option | Alias | Description |
---|---|---|
N/A |
- Configuration format - Defaults used by the component generator
- Configuration template - Modify for your own use