config: extract nyc into own npm scripts because it makes debugging impossible
This commit is contained in:
parent
1b2157f031
commit
1392532b7e
10
package.json
10
package.json
|
@ -13,8 +13,10 @@
|
||||||
"typeorm:migrate:library": "typeorm migration:run -c library",
|
"typeorm:migrate:library": "typeorm migration:run -c library",
|
||||||
"watch": "gulp build --watch --dev",
|
"watch": "gulp build --watch --dev",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"test:fast": "nyc mocha --grep @slow --invert",
|
"test:fast": "mocha --grep @slow --invert",
|
||||||
"test": "nyc mocha",
|
"test": "mocha",
|
||||||
|
"coverage:fast": "nyc npm run test:fast",
|
||||||
|
"coverage": "nyc npm run test",
|
||||||
"lint": "npm run eslint && npm run tslint",
|
"lint": "npm run eslint && npm run tslint",
|
||||||
"eslint-check": "eslint --print-config gulpfile.js | eslint-config-prettier-check",
|
"eslint-check": "eslint --print-config gulpfile.js | eslint-config-prettier-check",
|
||||||
"eslint": "eslint .",
|
"eslint": "eslint .",
|
||||||
|
@ -25,8 +27,8 @@
|
||||||
"forge:start": "electron-forge start",
|
"forge:start": "electron-forge start",
|
||||||
"forge:make": "electron-forge --platform win32 --arch x64 make",
|
"forge:make": "electron-forge --platform win32 --arch x64 make",
|
||||||
"forge": "npm run build && npm run forge:make",
|
"forge": "npm run build && npm run forge:make",
|
||||||
"precommit": "npm run prettier && npm run eslint-check && npm run tslint-check && npm run lint && npm run test:fast",
|
"precommit": "npm run prettier && npm run eslint-check && npm run tslint-check && npm run lint && npm run coverage:fast",
|
||||||
"prepush": "npm run test"
|
"prepush": "npm run coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jsdom": "^15.1.1",
|
"jsdom": "^15.1.1",
|
||||||
|
|
Loading…
Reference in New Issue