1.0.0 • Published 4 years ago
@ps-cli/react v1.0.0
React application generator for Pheadera Solution based on on lib create-react-app.
Installation
$ npm install -g @ps-cli/reactQuick 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.jsOptions
Usage: ps-cli-react new [options] <name>
Generates a new project
Options:
-h, --help Help in optionsStart your React app at http://localhost:3000/:
$ npm startGenerate
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 commandCommand 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|gLicense
1.0.0
4 years ago