cra-cli
v0.1.1
Published
a cli file generator (components & containers) for create-react-app projects
Downloads
4
Readme
Create React App CLI
A cli file generator (components & containers) for create-react-app projects.
Install
$ yarn global add cra-cli
or via npm:
$ npm i -g cra-cli
Usage
$ cra-cli --help
Generating a new component
To generate a component run the following:
$ cra-cli -c Button
Generating a new container
To generate a container run the following:
$ cra-cli -C App
Options
-c, --component Component
-C, --container Container
-d, --directory Create Directories for components/containers
-f, --force Overwrite directories/files that exist
-h, --help output usage information```