-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
108 lines (108 loc) · 3.15 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
{
"name": "apidoc-mock",
"version": "5.0.6",
"description": "Create a mock server from apiDoc comments.",
"author": "cdcabrera",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/cdcabrera/apidoc-mock.git"
},
"bugs": {
"url": "https://github.com/cdcabrera/apidoc-mock/issues"
},
"keywords": [
"api",
"apidoc",
"apidoc mock",
"cli",
"comment",
"mock",
"server"
],
"engines": {
"node": ">=18.0.0"
},
"files": [
"data/*",
"src/**/*.js",
"!src/**/.*/**",
"!src/**/*test*"
],
"bin": {
"mock": "bin/cli.js"
},
"scripts": {
"build:deps": "bash ./scripts/dependencies.sh --doctor -u --doctorTest \"npm run test:deps\" --reject \"apidoc\"",
"docker:build": "docker build -t apidoc-mock-test .",
"docker:run": "docker stop mock-api-test; docker run -i --rm -p 5000:8000 -v \"$(pwd)/data:/app/data\" --name mock-api-test apidoc-mock-test",
"docker:stop": "docker stop mock-api-test",
"release": "changelog",
"start": "./bin/cli.js -w ./data",
"start:dev": "nodemon --watch data --watch src './bin/cli.js -w ./data'",
"test": "run-s -l test:lint test:spell* test:ci",
"test:ci": "export CI=true; jest --collectCoverage --coverageReporters=\"lcov\" --coverageReporters=\"json-summary\"",
"test:clearCache": "jest --clearCache",
"test:coverage": "run-s test:ci test:coverageSummary",
"test:coverageSummary": "node ./scripts/actions.coverage.js",
"test:deps": "rm -rf ./.docs; run-s test",
"test:dev": "rm -rf ./.docs; eslint ./src; run-s test:spell test:local",
"test:integration": "jest --roots=./tests",
"test:integration-dev": "jest --roots=./tests --watchAll",
"test:lint": "eslint ./src ./bin ./data",
"test:local": "jest --watch",
"test:spell-docs": "cspell ./README.md ./CONTRIBUTING.md --config ./cspell.config.json",
"test:spell": "cspell './src/**/*.js' './tests/**/*.js' --config ./cspell.config.json"
},
"jest": {
"roots": [
"src"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
},
"collectCoverageFrom": [
"src/**/*.js",
"!src/**/.*/**",
"!src/logger/*"
],
"setupFilesAfterEnv": [
"<rootDir>jest.setupTests.js"
]
},
"apidoc": {
"title": "Custom apiDocs",
"name": "apiDocs",
"description": "API documentation with apiDoc."
},
"dependencies": {
"apidoc": "1.2.0",
"express": "^4.21.2",
"http-terminator": "^3.2.0",
"node-watch": "^0.7.4",
"winston": "^3.17.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"changelog-light": "^2.0.4",
"cspell": "^8.17.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-jsdoc": "^50.6.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0",
"nodemon": "^3.1.9",
"npm-check-updates": "^17.1.14",
"npm-run-all": "^4.1.5",
"prettier": "^3.4.2"
}
}