1.0.4 • Published 3 years ago

react-component-folder-generator v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

React Component Folder Generator

banner

🗂 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-generator

Note: 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 TestComponent

Default output location is src/components So,result is Below

result

result

Case of your Own template

  1. make folder in your workspace name .template
  2. run command

    m-rcfg doc
  3. custom your doc in .template > template.json

NameTypeDefaultDescription
prefixstring__M_COMPONENT__Specify your component template file You can custom this file, but if change file name, make sure this value also change
outputstring./src/componentsDefine where components folder output Path

🚕 Example

You can use npx

npx react-component-folder-generator -n TestComponent
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago