|
12 | 12 | "node": ">=10.16"
|
13 | 13 | },
|
14 | 14 | "scripts": {
|
| 15 | + "clean": "lb-clean dist *.tsbuildinfo .eslintcache", |
| 16 | + |
15 | 17 | "build": "lb-tsc",
|
16 | 18 | "build:watch": "lb-tsc --watch",
|
| 19 | + "rebuild": "npm run clean && npm run build", |
| 20 | + |
17 | 21 | "lint": "npm run eslint",
|
18 |
| - "coverage": "npm run pretest && lb-nyc mocha --recursive 'dist/__tests__/**/*.unit.js' --timeout 10000 && lb-nyc report --reporter=cobertura", |
19 |
| - "only-cobertura": "lb-nyc report --reporter=cobertura", |
20 |
| - "coverage:ci": "lb-nyc report --reporter=cobertura | coveralls", |
21 | 22 | "lint:fix": "npm run eslint:fix && npm run prettier:fix",
|
| 23 | + "eslint": "lb-eslint --report-unused-disable-directives .", |
| 24 | + "eslint:fix": "npm run eslint -- --fix", |
22 | 25 | "prettier:cli": "lb-prettier \"**/*.ts\" \"**/*.js\"",
|
23 | 26 | "prettier:check": "npm run prettier:cli -- -l",
|
24 | 27 | "prettier:fix": "npm run prettier:cli -- --write",
|
25 |
| - "eslint": "lb-eslint --report-unused-disable-directives .", |
26 |
| - "eslint:fix": "npm run eslint -- --fix", |
27 |
| - "unit-test": "npm run pretest && lb-nyc mocha --recursive 'dist/__tests__/**/*.unit.js' --timeout 10000", |
28 |
| - "pretest": "npm run clean && npm run build", |
| 28 | + |
| 29 | + "precoverage": "npm run unit-test", |
| 30 | + "coverage": "lb-nyc report --reporter=text --reporter=lcov", |
| 31 | + "only-coverage": "lb-nyc report --reporter=lcov", |
| 32 | + |
| 33 | + "pretest": "npm run rebuild", |
29 | 34 | "test": "lb-nyc mocha --recursive 'dist/__tests__/**/*.js' --timeout 10000",
|
30 | 35 | "posttest": "npm run lint",
|
31 | 36 | "test:dev": "lb-nyc mocha --allow-console-logs dist/__tests__/**/*.js && npm run posttest",
|
32 |
| - "precoverage": "npm test", |
33 |
| - "premigrate": "npm run build", |
| 37 | + "unit-test": "npm run pretest && lb-nyc mocha --recursive 'dist/__tests__/**/*.unit.js' --timeout 10000", |
| 38 | + |
| 39 | + "premigrate": "npm run rebuild", |
34 | 40 | "migrate": "node ./dist/migrate",
|
35 |
| - "preopenapi-spec": "npm run build", |
| 41 | + |
| 42 | + "preopenapi-spec": "npm run rebuild", |
36 | 43 | "openapi-spec": "node ./dist/openapi-spec",
|
37 |
| - "rebuild": "npm run clean && npm run build", |
| 44 | + |
38 | 45 | "prestart": "npm run rebuild",
|
39 | 46 | "start": "node -r source-map-support/register .",
|
40 |
| - "start-daemon": "npm run prestart && node -r source-map-support/register . --appmode=DAEMON", |
41 |
| - "start-api": "npm run prestart && node -r source-map-support/register . --appmode=API", |
42 |
| - "clean": "lb-clean dist *.tsbuildinfo .eslintcache" |
| 47 | + "start-api": "npm run start -- --appmode=API", |
| 48 | + "start-daemon": "npm run start -- --appmode=DAEMON" |
43 | 49 | },
|
44 | 50 | "repository": {
|
45 | 51 | "type": "git",
|
|
0 commit comments