@ps-cli/react
v1.0.0
Published
React boilerplate generator based on create-react-app and custom code
Downloads
2
Readme
React application generator for Pheadera Solution based on on lib create-react-app
.
Installation
$ npm install -g @ps-cli/react
Quick Start
The quickest way to get started with react-cli is to utilize the executable ps-react-cli new
to generate an application as shown below:
Create the app:
$ ps-cli-react new <name>
or
$ psr new <name>
It will create a directory with <name>
in current folder. Inside the directory it will setup a basic project with the following folder structure.
app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│ ├── favicon.ico
│ ├── index.html
│ └── manifest.json
└── src
├── @Components
│ ├── index.js
├── App.css
├── App.js
├── App.test.js
├── index.css
├── index.js
├── logo.svg
└── serviceWorker.js
└── setupTests.js
Options
Usage: ps-cli-react new [options] <name>
Generates a new project
Options:
-h, --help Help in options
Start your React app at http://localhost:3000/
:
$ npm start
Generate
Usage: ps-react-cli generate|g [options] [command]
Options:
-h, --help Get the help info
Commands:
redux-store|rs Add redux store to the project
help [command] display help for command
Command Line Options
This generator can also be further configured with the following command line flags.
Usage: ps-cli-react [options] [command]
Gives the verison of CLI
Options:
-v, --version Version
-h, --help Get the help info
Commands:
new <name> Generates a new project
generate|g