config: extract nyc into own npm scripts because it makes debugging impossible

This commit is contained in:
Xymorot 2019-10-26 02:09:11 +02:00
parent 1b2157f031
commit 1392532b7e
1 changed files with 6 additions and 4 deletions

View File

@ -13,8 +13,10 @@
"typeorm:migrate:library": "typeorm migration:run -c library",
"watch": "gulp build --watch --dev",
"build": "gulp build",
"test:fast": "nyc mocha --grep @slow --invert",
"test": "nyc mocha",
"test:fast": "mocha --grep @slow --invert",
"test": "mocha",
"coverage:fast": "nyc npm run test:fast",
"coverage": "nyc npm run test",
"lint": "npm run eslint && npm run tslint",
"eslint-check": "eslint --print-config gulpfile.js | eslint-config-prettier-check",
"eslint": "eslint .",
@ -25,8 +27,8 @@
"forge:start": "electron-forge start",
"forge:make": "electron-forge --platform win32 --arch x64 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",
"prepush": "npm run test"
"precommit": "npm run prettier && npm run eslint-check && npm run tslint-check && npm run lint && npm run coverage:fast",
"prepush": "npm run coverage"
},
"dependencies": {
"jsdom": "^15.1.1",