1.0.4 • Published 3 years ago
react-component-folder-generator v1.0.4
React Component Folder Generator

🗂 What is m-rcfg?
This package is built for component folder generator who use react and has specific folder template.
m means for m of minoo
🚗 Installation
# using yarn
yarn global add react-component-folder-generator# using npm
npm install -g react-component-folder-generatorNote: add --save if you are using npm < 5.0.0
⚙️ Configuaration Template
Case of No have Own template
If you don`t want customize your own template just command like below!
# m-rcfg generate -n <YOUR_COMPONET_FOLDER_NAME>
m-rcfg generate -n TestComponentDefault output location is src/components So,result is Below


Case of your Own template
- make folder in your workspace name
.template run command
m-rcfg doccustom your doc in
.template > template.json
| Name | Type | Default | Description |
|---|---|---|---|
| prefix | string | __M_COMPONENT__ | Specify your component template file You can custom this file, but if change file name, make sure this value also change |
| output | string | ./src/components | Define where components folder output Path |
🚕 Example
You can use npx
npx react-component-folder-generator -n TestComponent