On travis run with NODE_ENV=production (#11)

* package.json: Clean up scripts

* travis: Run travis build scripts

These run with NODE_ENV=production, which is needed to have correct
routing on all clouddot instances.
This commit is contained in:
Sanne Raymaekers 2020-09-22 15:23:26 +02:00 committed by GitHub
parent 4c6c3fae1b
commit 16ec5a7e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ node_js:
install:
- npm ci
script:
- npm run verify
- npm run travis:verify
- npx codecov
after_success:
- curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s

View file

@ -69,17 +69,17 @@
},
"scripts": {
"build": "webpack --config config/prod.webpack.config.js",
"build:prod": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
"deploy": "npm-run-all build:prod lint test",
"lint": "npm-run-all lint:*",
"lint:js": "eslint config src",
"lint:js:fix": "eslint config src --fix",
"lint:sass": "stylelint 'src/**/*.scss' --config .stylelintrc.json",
"nightly": "npm run deploy",
"nightly": "npm run travis:verify",
"prod": "NODE_ENV=production webpack-dev-server --config config/dev.webpack.config.js",
"server:ctr": "node src/server/generateServerKey.js",
"start": "NODE_ENV=development webpack-dev-server --config config/dev.webpack.config.js",
"test": "jest --verbose",
"travis:build": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
"travis:verify": "npm-run-all travis:build lint test",
"verify": "npm-run-all build lint test"
},
"insights": {