mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 17:19:45 +02:00
Update build scripts
This commit is contained in:
@@ -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
|
|
||||||
|
@@ -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": {
|
||||||
|
Reference in New Issue
Block a user