-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
114 lines (114 loc) · 3.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@davesag/api-server-boilerplate",
"version": "1.0.1",
"description": "Dave Sag's boilerplate code for a swagger based API server",
"main": "index.js",
"engines": {
"node": ">= 10.15.3",
"npm": ">= 6.5.0"
},
"scripts": {
"eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
"lint": "eslint .",
"prettier": "prettier --write '**/*.{js,json,md}'",
"start": "NODE_PATH=. node index.js",
"swagger": "docker-compose up -d swagger",
"test": "npm run test:unit",
"test:all": "npm run test:unit; npm run test:integration",
"test:server": "find ./test/server -name '*.test.js' | NODE_ENV=test NODE_PATH=. OFFLINE=true xargs mocha --require ./test/server/testHelper.js --bail",
"test:unit": "find ./test/unit -name '*.test.js' | NODE_ENV=test NODE_PATH=. xargs mocha --require ./test/unit/testHelper.js",
"test:unit:cov": "find ./test/unit -name '*.test.js' | NODE_ENV=test NODE_PATH=. xargs nyc mocha --require ./test/unit/testHelper.js",
"test:mutants": "NODE_ENV=test NODE_PATH=. npx stryker run"
},
"keywords": [
"swagger",
"express",
"nodejs",
"api",
"server",
"boilerplate"
],
"author": "Dave Sag <davesag@gmail.com>",
"license": "MIT",
"dependencies": {
"body-parser": "^1.18.3",
"cors": "^2.8.5",
"dotenv": "^7.0.0",
"express": "^4.16.4",
"http-status-codes": "^1.3.2",
"node-http-error": "^2.0.0",
"swagger-express-validator": "^1.0.0",
"swagger-routes-express": "^2.0.3",
"swagger-ui-express": "^4.0.2",
"traverse-folders": "^1.1.0",
"yamljs": "^0.3.0"
},
"devDependencies": {
"@stryker-mutator/core": "^1.2.0",
"@stryker-mutator/javascript-mutator": "^1.2.0",
"@stryker-mutator/mocha-framework": "^1.2.0",
"@stryker-mutator/mocha-runner": "^1.2.0",
"chai": "^4.2.0",
"chai-almost": "^1.0.1",
"chai-as-promised": "^7.1.1",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-mocha": "^5.3.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"mocha": "^6.1.3",
"mock-req-res": "^1.1.0",
"nyc": "^14.0.0",
"prettier": "^1.17.0",
"proxyquire": "^2.1.0",
"sinon": "^7.3.2",
"sinon-chai": "^3.3.0",
"supertest": "^4.0.2"
},
"lint-staged": {
"**/*.{js,json,md}": [
"prettier --write",
"git add"
]
},
"nyc": {
"check-coverage": true,
"per-file": true,
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"src/**/*.js"
],
"exclude": [
"src/index.js",
"src/utils/logger.js"
],
"reporter": [
"lcov",
"text"
],
"all": true,
"cache": true
},
"greenkeeper": {
"ignore": []
},
"prettier": {
"semi": false,
"singleQuote": true,
"proseWrap": "never"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}