Skip to content
SAO template for react with poi
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__test__
template
.editorconfig
.gitattributes
.gitignore
LICENSE
README.md
circle.yml
package.json
sao.js

README.md

template-react

Now vbuild is renamed to poi

Now using poi 9, for 6.0 please see branch 6.0

NPM version NPM downloads Build Status

SAO template for react with vbuild, a bit more flixible than create-react-app

Usage

Install SAO first.

From git

$ sao zcong1993/template-react
# the first time
$ sao zcong1993/template-react --install

From npm

$ sao react
# the first time
$ yarn global add template-react
# or
$ sao react --install

Options

offline

type: bool

default: 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: bool

default: true

add poi as devDependency. Make sure you have installed poi globally when set false.

xo

type: bool

default: true

use xo lint your code, you can use npm run lint and npm run lint:fix when set true

test

type: bool

default: false

if using react-jest test your react app.

enzyme

type: bool

default: true

if need enzyme shallow lib with test. Only work when test options set true. More about enzyme shallow please see document

License

MIT © zcong1993

You can’t perform that action at this time.