-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
122 lines (122 loc) · 3.21 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
115
116
117
118
119
120
121
122
{
"name": "@davesag/api-server-boilerplate",
"version": "1.2.8",
"description": "Boilerplate code for an OpenAPI based API server",
"author": "Dave Sag <davesag@gmail.com>",
"type": "commonjs",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/davesag"
},
"private": true,
"main": "index.js",
"engines": {
"node": ">= 8.10.0"
},
"directories": {
"lib": "src",
"test": "test"
},
"scripts": {
"eslint-check": "eslint --print-config src/index.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:unit": "NODE_ENV=test NODE_PATH=. mocha ./test/unit/ --require ./test/unitTestHelper.js --recursive",
"test:unit:cov": "NODE_ENV=test NODE_PATH=. nyc mocha ./test/unit/ --require ./test/unitTestHelper.js --recursive",
"test:server": "NODE_ENV=test NODE_PATH=. mocha ./test/server/ --require ./test/serverTestHelper.js --file ./test/serverTestInit.js --recursive ",
"snyk-protect": "snyk-protect"
},
"keywords": [
"swagger",
"express",
"nodejs",
"api",
"server",
"boilerplate"
],
"repository": {
"type": "git",
"url": "https://github.com/davesag/api-server-boilerplate.git"
},
"bugs": {
"url": "https://github.com/davesag/api-server-boilerplate/issues"
},
"homepage": "https://github.com/davesag/api-server-boilerplate#readme",
"dependencies": {
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-openapi-validator": "^5.1.6",
"http-status-codes": "^2.3.0",
"node-http-error": "^2.0.0",
"route-async": "^1.0.8",
"swagger-routes-express": "^3.3.2",
"swagger-ui-express": "^5.0.0",
"traverse-folders": "^1.1.3",
"yamljs": "^0.3.0"
},
"devDependencies": {
"ajv": "^8.12.0",
"chai": "^4.3.10",
"chai-almost": "^1.0.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"mocha": "^10.4.0",
"mock-req-res": "^1.2.1",
"nyc": "^15.1.0",
"prettier": "^3.2.5",
"proxyquire": "^2.1.3",
"sinon": "^17.0.1",
"sinon-chai": "^3.5.0",
"supertest": "^7.0.0"
},
"prettier": {
"semi": false,
"singleQuote": true,
"proseWrap": "never",
"arrowParens": "avoid",
"trailingComma": "none",
"printWidth": 100
},
"lint-staged": {
"**/*.{js,json,md}": [
"prettier --write"
]
},
"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
},
"snyk": true
}