Try an all-in-one script

This commit is contained in:
dannyrb 2019-04-29 07:03:54 -04:00
parent 803aaafdcf
commit f02559c778
2 changed files with 4 additions and 3 deletions

View File

@ -44,8 +44,9 @@ cd ..
echo $DEPLOY_PRIME_URL
export ROOT_URL=$DEPLOY_PRIME_URL/demo
mkdir ./docs/latest/_book/demo/
yarn install
yarn build:web
yarn build:web:ci
# OLD DEPLOY
# cd example
@ -56,5 +57,4 @@ yarn build:web
# rm -rf node_modules
# NEW DEPLOY
mkdir docs/latest/_book/demo/
cpx 'build/*' docs/latest/_book/demo --verbose
# cpx 'build/*' docs/latest/_book/demo --verbose

View File

@ -19,6 +19,7 @@
"dev:debug": "cross-env PORT=5000 react-scripts start",
"build:package": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c",
"build:web": "yarn run preBuild && cross-env PUBLIC_URL=/demo react-scripts --max_old_space_size=4096 build",
"build:web:ci": "yarn run preBuild && cross-env PUBLIC_URL=/demo react-scripts --max_old_space_size=4096 build && cpx 'build/*' docs/latest/_book/demo --verbose",
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
"test": "jest",
"test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov",