chore: add cross-env and update ci config

pull/82/head
tangjinzhou 6 years ago
parent 6047181fbd
commit 675f918149

@ -5,7 +5,7 @@ node_js:
before_script:
- npm install vue vue-template-compiler
script:
- cp ./scripts/.npmrc.template $HOME/.npmrc
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then cp ./scripts/.npmrc.template $HOME/.npmrc; fi
- COVERAGE=true npm run test
- npm run codecov
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then npm run pub-with-ci; fi

@ -22,8 +22,8 @@
"es"
],
"scripts": {
"dev": "NODE_ENV=development ENTRY_INDEX=dev ./node_modules/.bin/webpack-dev-server --open --hot --port 3001",
"start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
"dev": "cross-env NODE_ENV=development ENTRY_INDEX=dev ./node_modules/.bin/webpack-dev-server --open --hot --port 3001",
"start": "cross-env NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
"test": "jest --config .jest.js",
"site": "node scripts/run.js site-dist",
"copy": "node scripts/run.js copy-html",

Loading…
Cancel
Save