Skip to content

Commit 2e70cf6

Browse files
committed
Chore: extract watch script to standalone package
1 parent 410d6ea commit 2e70cf6

File tree

2 files changed

+5
-114
lines changed

2 files changed

+5
-114
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
"rollup-watch": "^4.0.0",
4646
"typescript": "~2.3.4",
4747
"typescript-eslint-parser": "^3.0.0",
48-
"wait-on": "^2.0.2"
48+
"wait-on": "^2.0.2",
49+
"warun": "^1.0.0"
4950
},
5051
"scripts": {
51-
"_mocha": "_mocha \"test/*.js\" --reporter dot",
52+
"_mocha": "_mocha \"test/*.js\" --reporter dot --timeout 5000",
5253
"prebuild": "npm run -s clean",
5354
"build": "tsc && rollup -c -o index.js && dts-bundle --name vue-eslint-parser --main .temp/index.d.ts --out ../index.d.ts",
5455
"clean": "rimraf .nyc_output .temp coverage index.*",
@@ -67,8 +68,8 @@
6768
"watch": "run-p watch:*",
6869
"watch:tsc": "tsc --watch",
6970
"watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
70-
"watch:test": "wait-on index.js && node test/tools/watch.js index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" -- nyc -r lcov npm run -s _mocha",
71-
"watch:update-ast": "wait-on index.js && node test/tools/watch.js index.js \"test/fixtures/ast/*/*.vue\" -- node test/tools/update-fixtures-ast.js",
71+
"watch:test": "wait-on index.js && warun index.js \"test/*.js\" \"test/fixtures/ast/*/*.json\" \"test/fixtures/*\" --no-initial -- nyc -r lcov npm run -s _mocha",
72+
"watch:update-ast": "wait-on index.js && warun index.js \"test/fixtures/ast/*/*.vue\" -- node test/tools/update-fixtures-ast.js",
7273
"watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
7374
},
7475
"repository": {

test/tools/watch.js

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)