An CLI generator for ReactJS components.
Run
npm install -g grcf
You may need to sudo
it.
## Usage
Run
grcf <ComponentName>
This will create a folder of your component name, and a Component js file with the same name.
options
- -jsx to create a jsx component [default]
- -tsx to create a typescript component
- -scss to create a scss style file for the component
- -file to create a single file component
- -notest to skip test file creation for the component
- -nostyle to skip style file creation for the component
That's it!
Enjoy and feel free to share your suggestion!