Update travis build job
This commit is contained in:
parent
87d740c51e
commit
c557ec5611
2 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,8 @@ install: npm i
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
- npm run-script build
|
- npm run build
|
||||||
|
- npm run clean
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
|
|
|
@ -35,7 +35,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ./node_modules/xo/cli.js",
|
"test": "node ./node_modules/xo/cli.js",
|
||||||
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
|
||||||
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
|
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
|
||||||
|
"clean": "find . -maxdepth 1 -type f -not -name 'index.html' -not -name 'README.md' -delete && rm -fr src dist/vanity.js"
|
||||||
},
|
},
|
||||||
"xo": {
|
"xo": {
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue