Update build scripts

This commit is contained in:
Tyler Long
2017-09-01 16:15:41 +08:00
parent cb9a7f4cd1
commit 89e1da4780
2 changed files with 4 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ addons:
repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091 repo_token: e87e6bf1c253e0555437ebd23235fdfe2749b889358e7c6d100e4ea5b4f2e091
language: node_js language: node_js
node_js: node_js:
- "7" - "8"
before_install: before_install:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start & - sh -e /etc/init.d/xvfb start &
@@ -17,6 +17,3 @@ script:
- yarn test - yarn test
after_script: after_script:
- cat coverage/lcov.info | codeclimate - cat coverage/lcov.info | codeclimate
cache:
directories:
- node_modules

View File

@@ -16,18 +16,17 @@
"mermaid": "./bin/mermaid.js" "mermaid": "./bin/mermaid.js"
}, },
"scripts": { "scripts": {
"watch": "yarn build -- --watch",
"build": "node -r babel-register ./node_modules/.bin/webpack --progress --colors", "build": "node -r babel-register ./node_modules/.bin/webpack --progress --colors",
"dist": "node -r babel-register ./node_modules/.bin/webpack --progress --colors -p --config webpack.config.prod.js", "watch": "yarn build -- --watch",
"dist": "yarn build -- -p --config webpack.config.prod.js",
"upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17", "upgrade": "yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17",
"lint": "node_modules/.bin/standard", "lint": "node_modules/.bin/standard",
"karma": "node node_modules/karma/bin/karma start karma.conf.js --single-run", "karma": "node node_modules/karma/bin/karma start karma.conf.js --single-run",
"tape": "node node_modules/tape/bin/tape test/cli_test-*.js", "tape": "node node_modules/tape/bin/tape test/cli_test-*.js",
"test": "yarn tape && yarn karma", "test": "yarn lint && yarn tape && yarn karma",
"live": "live-server ./test/examples", "live": "live-server ./test/examples",
"jison": "gulp jison_legacy", "jison": "gulp jison_legacy",
"live_server": "gulp live-server", "live_server": "gulp live-server",
"pretest": "yarn lint",
"prepublishOnly": "yarn build && yarn dist && yarn test" "prepublishOnly": "yarn build && yarn dist && yarn test"
}, },
"repository": { "repository": {