Fix node env issue

This commit is contained in:
Paul Kaplan 2017-10-13 13:33:04 -04:00
parent 1d6e854e4a
commit 8ffb95c02d
2 changed files with 1 additions and 5 deletions

View file

@ -6,9 +6,6 @@ node_js:
cache:
directories:
- node_modules
env:
global:
- NODE_ENV=production
install:
- sudo apt-get update && sudo apt-get install -y libcairo2-dev libpango1.0-dev libssl-dev libjpeg62-dev libgif-dev pkg-config
- npm install canvas
@ -35,4 +32,3 @@ deploy:
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN

View file

@ -11,7 +11,7 @@
"i18n:src": "babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/",
"lint": "eslint . --ext .js,.jsx",
"start": "npm run i18n:msgs && webpack-dev-server",
"test": "npm run lint && npm run build && npm run unit",
"test": "npm run lint && npm run unit && NODE_ENV=production npm run build",
"unit": "jest",
"watch": "webpack --progress --colors --watch"
},