Update travis build

This commit is contained in:
Niklas von Hertzen 2017-08-03 22:03:05 +08:00
parent f6a5153d99
commit 959b75a441
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- '4.0' - '7'
env: env:
global: global:
- secure: eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8= - secure: eW41gIqOizwO4pTgWnAAbW75AP7F+CK9qfSed/fSh4sJ9HWMIY1YRIaY8gjr+6jV/f7XVHcXuym6ZxgINYSkVKbF1JKxBJNLOXtSgNbVHSic58pYFvUjwxIBI9aPig9uux1+DbnpWqXFDTcACJSevQZE0xwmjdrSkDLgB0G34v8=
@ -15,6 +15,9 @@ notifications:
on_success: always on_success: always
on_failure: always on_failure: always
on_start: false on_start: false
script:
- npm run build
- npm test
deploy: deploy:
- provider: npm - provider: npm
email: niklasvh@gmail.com email: niklasvh@gmail.com

View File

@ -37,7 +37,8 @@
"webpack": "3.4.1" "webpack": "3.4.1"
}, },
"scripts": { "scripts": {
"build": "rimraf dist/ && babel src/ -d dist/npm/", "build": "rimraf dist/ && npm run build:npm && npm run build:browser",
"build:npm": "babel src/ -d dist/npm/",
"build:browser": "webpack", "build:browser": "webpack",
"format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"src/**/*.js\"", "format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"src/**/*.js\"",
"flow": "flow", "flow": "flow",