Skip to content

zcong1993/template-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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