create-react-files-cli

1.0.1 • Public • Published

to create a basic component file

crc --help ----> gets a list of all the commands and how to run them

crc -c ----> -c is the building block of creating a class component

crc -f ---> -f is the building block of creating a functional component

crc -arrow ---> -es6 is the building block of creating an arrow function Component

crc -ts ---> provides the same services but generates typescript code instead of javascript crc -n ---> specify the name of the component

crc -l ---> specify a location if empty it will ignore and go with current working directory of where the command was called

location: if no location is specified the place where the command was called will determine where the file will go

location: /thefolder will look for a folder with name thefolder and put the new file there if not folder exists it will automatically create it

crc -c MyClassComponent

crc [-c || -f || -arrow] -n=[component_name] -l[location] [-ts]

Package Sidebar

Install

npm i create-react-files-cli

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

5.01 kB

Total Files

6

Last publish

Collaborators

  • sameem206