Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 715 Bytes

readme.md

File metadata and controls

39 lines (27 loc) · 715 Bytes

grcf

An CLI generator for ReactJS components.

Install

Run

npm install -g grcf

You may need to sudo it.


## Usage

Generate Component

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!