@redocly/mock-server 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -0
- package/README.md +17 -0
- package/dist/bin.js +419 -0
- package/package.json +82 -0
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@redocly/mock-server",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Redocly Mock server",
|
|
5
|
+
"author": "team@redocly.com",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"main": "dist/bin.js",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"start": "npx ts-node-dev -r tsconfig-paths/register --respawn src/cli/cli.ts mock ./test/fixtures/large-openapi.json",
|
|
10
|
+
"ts:check": "npx tsc --noEmit --skipLibCheck",
|
|
11
|
+
"test": "npm run test:unit && npm run test:integration",
|
|
12
|
+
"test:unit": "npx jest ./src",
|
|
13
|
+
"test:unit:coverage": "npm run test:unit -- --coverage",
|
|
14
|
+
"test:integration": "npx jest ./test --forceExit",
|
|
15
|
+
"test:integration:coverage": "npm run test:integration -- --coverage",
|
|
16
|
+
"build:js": "node ./esbuild.js",
|
|
17
|
+
"build": "npx rimraf ./dist && npm run build:js"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@redocly/ajv": "8.6.4",
|
|
21
|
+
"@redocly/openapi-core": "1.0.0-beta.73",
|
|
22
|
+
"ajv-formats": "^2.1.1",
|
|
23
|
+
"js-yaml": "^4.1.0",
|
|
24
|
+
"openapi-sampler": "1.2.3",
|
|
25
|
+
"swagger2openapi": "^7.0.8",
|
|
26
|
+
"ts-node": "^10.9.1",
|
|
27
|
+
"yargs": "^17.5.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/jest": "^27.5.1",
|
|
31
|
+
"@types/jest-when": "^3.5.0",
|
|
32
|
+
"@types/js-yaml": "^4.0.5",
|
|
33
|
+
"@types/node": "^17.0.0",
|
|
34
|
+
"@types/yargs": "^17.0.10",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
36
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
37
|
+
"axios": "^0.24.0",
|
|
38
|
+
"esbuild": "^0.14.39",
|
|
39
|
+
"eslint": "^8.15.0",
|
|
40
|
+
"eslint-import-resolver-typescript": "^2.7.1",
|
|
41
|
+
"eslint-plugin-import": "^2.26.0",
|
|
42
|
+
"husky": "^8.0.1",
|
|
43
|
+
"jest": "^28.1.0",
|
|
44
|
+
"jest-when": "^3.5.1",
|
|
45
|
+
"openapi-types": "^10.0.0",
|
|
46
|
+
"prettier": "2.6.2",
|
|
47
|
+
"pretty-quick": "^3.1.3",
|
|
48
|
+
"rimraf": "^3.0.2",
|
|
49
|
+
"ts-jest": "^28.0.2",
|
|
50
|
+
"ts-node-dev": "^2.0.0",
|
|
51
|
+
"tsconfig-paths": "^3.12.0",
|
|
52
|
+
"typescript": "^4.6.4"
|
|
53
|
+
},
|
|
54
|
+
"prettier": {
|
|
55
|
+
"arrowParens": "avoid",
|
|
56
|
+
"printWidth": 100,
|
|
57
|
+
"singleQuote": true,
|
|
58
|
+
"trailingComma": "all"
|
|
59
|
+
},
|
|
60
|
+
"nx": {
|
|
61
|
+
"namedInputs": {
|
|
62
|
+
"prod": [
|
|
63
|
+
"!{projectRoot}/**/__tests__/**",
|
|
64
|
+
"!{projectRoot}/tests/**/*",
|
|
65
|
+
"!{projectRoot}/docs/**/*"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"targets": {
|
|
69
|
+
"build": {
|
|
70
|
+
"outputs": [
|
|
71
|
+
"{projectRoot}/dist"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"test": {
|
|
75
|
+
"outputs": [
|
|
76
|
+
"{projectRoot}/coverage",
|
|
77
|
+
"{projectRoot}/report.json"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|