fix: support before exec unit build g6

This commit is contained in:
zhanning.bzn 2019-11-20 23:03:17 +08:00
parent 96e536df76
commit 9b05694fe3
2 changed files with 4 additions and 4 deletions

6
.gitignore vendored
View File

@ -76,6 +76,6 @@ lib
public
# 忽略三个 webworker Layout 的单测因为找不到build/g6
web-worker-spec.js
force-web-worker-spec.js
circular-web-worker-spec.js
# web-worker-spec.js
# force-web-worker-spec.js
# circular-web-worker-spec.js

View File

@ -110,7 +110,7 @@
"lint-fix": "eslint --ext .html,.js --fix ./",
"prepublishOnly": "npm run build-lib && npm run build",
"screenshot": "node ./bin/screenshot.js",
"test": "torch --compile --renderer --opts test/mocha.opts --recursive ./test/unit",
"test": "npm run build && torch --compile --renderer --opts test/mocha.opts --recursive ./test/unit",
"test-live": "torch --compile --interactive --watch --opts test/mocha.opts --recursive ./test/unit",
"test-live-shape": "torch --compile --interactive --watch --opts test/mocha.opts --recursive ./test/unit/shape/nodes/modelRect-spec.js",
"test-live-util": "torch --compile --interactive --watch --opts test/mocha.opts --recursive ./test/unit/shape/edge-spec.js",