feat(watch): add unified watch task with multiview
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
"build": "trash build && tsc -p tsconfig.json && tsc -p config/tsconfig-module.json",
|
||||
"lint": "tslint src/**/*.ts",
|
||||
"unit": "yarn build && nyc ava",
|
||||
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 95",
|
||||
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
|
||||
"test": "yarn lint && yarn unit && yarn check-coverage",
|
||||
"watch:build": "yarn build -- -w",
|
||||
"watch:unit": "ava --watch --verbose",
|
||||
"watch": "trash build && multiview [yarn watch:build] [yarn watch:unit]",
|
||||
"watch:build": "tsc -p tsconfig.json -w",
|
||||
"watch:unit": "tsc -p tsconfig.json && ava --watch --verbose",
|
||||
"cov": "yarn unit && yarn html-coverage && opn coverage/index.html",
|
||||
"html-coverage": "nyc report --reporter=html",
|
||||
"send-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
|
||||
@@ -30,6 +31,7 @@
|
||||
"lint": "Lint all typescript source files",
|
||||
"unit": "Run unit tests",
|
||||
"test": "Lint and test the library",
|
||||
"watch": "Watch source files, rebuild library on changes, rerun relevant tests",
|
||||
"watch:build": "Watch source files, rebuild library on changes",
|
||||
"watch:unit": "Watch the build, rerun relevant tests on changes",
|
||||
"cov": "Run tests, generate the HTML coverage report, and open it in a browser",
|
||||
@@ -46,6 +48,7 @@
|
||||
"@types/node": "^7.0.5",
|
||||
"ava": "^0.18.1",
|
||||
"codecov": "^1.0.1",
|
||||
"multiview": "^2.3.1",
|
||||
"npm-scripts-info": "^0.3.6",
|
||||
"nyc": "^10.0.0",
|
||||
"opn-cli": "^3.1.0",
|
||||
|
||||
Reference in New Issue
Block a user