forked from mikestead/openapi-client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 1.85 KB
/
package.json
File metadata and controls
74 lines (74 loc) · 1.85 KB
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
{
"name": "openapi-client",
"version": "1.0.5",
"description": "Generate ES6 or TypeScript service integration code from an OpenAPI spec.",
"author": {
"name": "Mike Stead",
"url": "https://github.com/mikestead"
},
"license": "MIT",
"homepage": "https://github.com/mikestead/openapi-client",
"repository": {
"type": "git",
"url": "https://github.com/mikestead/openapi-client.git"
},
"bugs": {
"url": "https://github.com/mikestead/openapi-client/issues"
},
"engines": {
"node": ">=18",
"npm": ">=8.6"
},
"main": "dist/index.js",
"bin": {
"openapi": "dist/cli.js"
},
"scripts": {
"test": "jest test",
"prebuild": "npm run init && npm test",
"build": "tsc -p tsconfig.json && chmod +x ./dist/cli.js",
"predev": "npm run init",
"dev": "tsc -p tsconfig.json -w",
"init": "npm run clean && npm run copy:template",
"clean": "rm -rf ./dist",
"copy:template": "mkdir -p ./dist/gen/js && npm run copy:service-ts && npm run copy:service-js",
"copy:service-ts": "cp ./src/gen/js/service.ts.template ./dist/gen/js/service.ts.template",
"copy:service-js": "cp ./src/gen/js/service.js.template ./dist/gen/js/service.js.template"
},
"files": [
"dist"
],
"keywords": [
"swagger",
"swagger 2.0",
"openapi",
"rest",
"service",
"typescript",
"codegen"
],
"dependencies": {
"chalk": "^4.1.2",
"commander": "^9.0.0",
"common-tags": "^1.8.2",
"cross-fetch": "^3.1.5",
"js-yaml": "^4.1.0",
"mkdirp": "^1.0.4",
"mustache": "^4.2.0",
"openapi-types": "^12.1.3"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.0",
"@types/js-yaml": "^4.0.5",
"@types/mkdirp": "^1.0.2",
"@types/node": "^17.0.18",
"babel-jest": "^27.5.1",
"debug": "^4.3.4",
"jest": "^27.5.1",
"prettier": "^2.5.1",
"typescript": "^4.5.5"
}
}