forked from acacode/swagger-typescript-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
138 lines (138 loc) · 6.29 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "swagger-typescript-api",
"version": "13.0.3",
"description": "Generate typescript/javascript api from swagger schema",
"scripts": {
"update-deps-to-latest": "npx --yes npm-check-updates && npm i",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
"cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
"node": "node swagger-test-cli/generate.js",
"node:debug": "node --nolazy swagger-test-cli/generate.js",
"contributors": "all-contributors generate",
"cli:help": "node index.js -h",
"test-all": "npm run test-extended && npm run test-simple && npm run test-specific",
"test-all(update-snapshots)": "cross-env UPDATE_SNAPSHOTS=true npm run test-all",
"test-simple": "node --unhandled-rejections=strict scripts_runner.js generate validate",
"test-extended": "node --unhandled-rejections=strict scripts_runner.js generate-extended validate",
"test-specific": "node --unhandled-rejections=strict scripts_runner.js test:*",
"test-specific(update-snapshots)": "cross-env UPDATE_SNAPSHOTS=true node --unhandled-rejections=strict scripts_runner.js test:*",
"generate": "node tests/generate.js",
"generate-extended": "node tests/generate-extended.js",
"validate": "node tests/validate.js",
"validate:debug": "node --nolazy tests/validate.js",
"test:--route-types": "node tests/spec/routeTypes/test.js",
"test:--no-client": "node tests/spec/noClient/test.js",
"test:--default-as-success": "node tests/spec/defaultAsSuccess/test.js",
"test:--templates": "node tests/spec/templates/test.js",
"test:--union-enums": "node tests/spec/unionEnums/test.js",
"test:--add-readonly": "node tests/spec/readonly/test.js",
"test:--responses": "node tests/spec/responses/test.js",
"test:specProperty": "node tests/spec/specProperty/test.js",
"test:--module-name-index": "node tests/spec/moduleNameIndex/test.js",
"test:--module-name-first-tag": "node tests/spec/moduleNameFirstTag/test.js",
"test:--modular": "node tests/spec/modular/test.js",
"test:--single-http-client": "node tests/spec/singleHttpClient/test.js",
"test:--extract-request-params": "node tests/spec/extractRequestParams/test.js",
"test:--extract-request-body": "node tests/spec/extractRequestBody/test.js",
"test:--extract-response-body": "node tests/spec/extractResponseBody/test.js",
"test:--extract-response-error": "node tests/spec/extractResponseError/test.js",
"test:--enum-names-as-values": "node tests/spec/enumNamesAsValues/test.js",
"test:--default-response": "node tests/spec/defaultResponse/test.js",
"test:const-keyword": "node tests/spec/const-keyword/test.js",
"test:--js": "node tests/spec/js/test.js",
"test:jsSingleHttpClientModular": "node tests/spec/jsSingleHttpClientModular/test.js",
"test:--js--axios": "node tests/spec/jsAxios/test.js",
"test:--axios": "node tests/spec/axios/test.js",
"test:--another-array-type": "node tests/spec/another-array-type/test.js",
"test:--object-types": "node tests/spec/object-types/test.js",
"test:--axios--single-http-client": "node tests/spec/axiosSingleHttpClient/test.js",
"test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js",
"test:--dot-path-params": "node tests/spec/dot-path-params/test.js",
"test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js",
"test:--cli": "rimraf tests/spec/cli/schema.ts && node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js",
"test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js",
"test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js",
"test:--patch": "node tests/spec/patch/test.js",
"test:deprecated": "node tests/spec/deprecated/test.js",
"test:nullableRefTest3.0": "node tests/spec/nullable-3.0/test.js",
"test:nullableRefTest2.0": "node tests/spec/nullable-2.0/test.js",
"test:additionalProperties2.0": "node tests/spec/additional-properties-2.0/test.js",
"test:enums2.0": "node tests/spec/enums-2.0/test.js",
"test:another-query-params": "node tests/spec/another-query-params/test.js",
"test:on-insert-path-param": "node tests/spec/on-insert-path-param/test.js",
"test:extra-templates": "node tests/spec/extra-templates/test.js",
"test:extract-enums": "node tests/spec/extract-enums/test.js",
"test:discriminator": "node tests/spec/discriminator/test.js",
"test:sort-types": "node tests/spec/sortTypes/test.js",
"test:sort-types-false": "node tests/spec/sortTypes-false/test.js"
},
"author": "acacode",
"license": "MIT",
"typings": "./index.d.ts",
"main": "src/index.js",
"devDependencies": {
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"@types/lodash": "^4.14.195",
"@types/node": "^20.4.1",
"@types/prettier": "^2.7.3",
"all-contributors-cli": "^6.26.1",
"axios": "^1.4.0",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"git-diff": "^2.0.6",
"husky": "^8.0.3",
"pretty-quick": "^3.1.3",
"rimraf": "^5.0.1"
},
"dependencies": {
"@types/swagger-schema-official": "2.0.22",
"cosmiconfig": "8.2.0",
"didyoumean": "^1.2.2",
"eta": "^2.2.0",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"make-dir": "4.0.0",
"nanoid": "3.3.6",
"node-emoji": "2.1.0",
"node-fetch": "^3.3.1",
"prettier": "3.0.0",
"swagger-schema-official": "2.0.0-bab6bed",
"swagger2openapi": "7.0.8",
"typescript": "5.1.6"
},
"bin": {
"swagger-typescript-api": "index.js",
"sta": "index.js"
},
"keywords": [
"openapi",
"swagger",
"typescript",
"api",
"javascript",
"rest",
"codegen",
"generation",
"http"
],
"files": [
"src",
"index.js",
"index.d.ts",
"templates",
"cli",
"LICENSE"
],
"bugs": {
"url": "https://github.com/acacode/swagger-typescript-api/issues"
},
"homepage": "https://github.com/acacode/swagger-typescript-api",
"repository": {
"type": "git",
"url": "git://github.com/acacode/swagger-typescript-api"
}
}