https://github.com/zcong1993/template-react
SAO template for react with poi
https://github.com/zcong1993/template-react
react sao starter-kit template vbuild zcong1993
Last synced: about 2 months ago
JSON representation
SAO template for react with poi
- Host: GitHub
- URL: https://github.com/zcong1993/template-react
- Owner: zcong1993
- License: mit
- Created: 2017-03-16T05:12:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T02:25:42.000Z (over 7 years ago)
- Last Synced: 2025-04-07T08:15:48.847Z (2 months ago)
- Topics: react, sao, starter-kit, template, vbuild, zcong1993
- Language: JavaScript
- Homepage:
- Size: 124 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# template-react
Now `vbuild` is renamed to `poi`
Now using [poi 9](https://github.com/egoist/poi), for 6.0 please see branch [6.0](https://github.com/zcong1993/template-react/tree/6.0)
[](https://npmjs.com/package/template-react) [](https://npmjs.com/package/template-react)
[](https://circleci.com/gh/zcong1993/template-react)> SAO template for react with vbuild, a bit more flixible than create-react-app
## Usage
Install [SAO](https://github.com/egoist/sao) first.
### From git
```bash
$ sao zcong1993/template-react
# the first time
$ sao zcong1993/template-react --install
```### From npm
```bash
$ sao react
# the first time
$ yarn global add template-react
# or
$ sao react --install
```## Options
### offline
type: booldefault: false
create a react project support offline
`Note:` offline need poi as dev devDependency, if set true, poi will add into devDependencies automatically
### poi
type: booldefault: true
add poi as devDependency. Make sure you have installed `poi` globally when set false.
### xo
type: booldefault: true
use `xo` lint your code, you can use `npm run lint` and `npm run lint:fix` when set true
### test
type: booldefault: false
if using [react-jest](https://github.com/egoist/react-jest) test your react app.
### enzyme
type: booldefault: true
if need `enzyme shallow` lib with test. Only work when `test` options set true. More about `enzyme shallow` please see [document](http://airbnb.io/enzyme/docs/api/shallow.html)
## License
MIT © [zcong1993](github.com/zcong1993)