https://github.com/kkmaojunx/react-cli
A Configurable React Cli
https://github.com/kkmaojunx/react-cli
babel eslint prettier react-cli react-router redux webpack
Last synced: 3 months ago
JSON representation
A Configurable React Cli
- Host: GitHub
- URL: https://github.com/kkmaojunx/react-cli
- Owner: kkmaojunx
- Created: 2020-04-11T05:58:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T19:46:32.000Z (over 3 years ago)
- Last Synced: 2025-03-18T13:05:01.640Z (about 1 year ago)
- Topics: babel, eslint, prettier, react-cli, react-router, redux, webpack
- Language: JavaScript
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-cli-awesome
# Why?
In the normal development process, we need more than a simple CLI. We may need to install Redux, react-router and eslint etc. the [`react-cli-awesome`](https://github.com/kkmaojunx/react-cli) will help you solve these problems
## Installation
### npm
`npm install -g react-cli-awesome`
### yarn
`yarn add react-cli-awesome -g`
## Usage
* ### init
Download the offical tempalte from remote.
`react-cli init `
## Commander introduction
#### 1.Template Selection
(i). `React`, You can `npm run dev||npm run build` to server your project with `webpack+babel`;
(ii). `React Component`,that means you want your project to exported to a react component.So there is only `Babel` for you.
| React | React Component |
| ------------- | ------------- |
| webpack+babel | babel |
#### 2.ThirdParty Library Selection
* ##### Eslint+Prettier
* ##### Redux
* ##### React-Router