-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
158 lines (158 loc) · 4.38 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"name": "tswagger",
"displayName": "tswagger",
"icon": "assets/images/logo.png",
"description": "Generate typescript for swagger.",
"version": "2.2.0",
"private": "true",
"author": "Orchard",
"publisher": "OrcaTeam",
"repository": "https://github.com/orca-team/vscode-tswagger.git",
"license": "MIT",
"keywords": [
"vscode",
"vscode extension",
"swagger",
"typescript",
"swagger-to-typescript"
],
"workspaces": {
"packages": [
"webview"
],
"nohoist": [
"**"
]
},
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Other",
"Programming Languages"
],
"main": "./out/extension.js",
"activationEvents": [],
"contributes": {
"commands": [
{
"command": "tswagger.generateTypescript",
"title": "<TSwagger> Generate Typescript"
}
],
"menus": {
"editor/context": [
{
"command": "tswagger.generateTypescript",
"group": "navigation"
}
]
},
"configuration": {
"type": "object",
"title": "tswagger",
"properties": {
"tswagger.swaggerUrlList": {
"type": "array",
"description": "配置 swagger 文档地址列表",
"default": [
{
"id": 0,
"name": "Swagger 官方 Demo",
"url": "https://petstore.swagger.io/v2/swagger.json"
}
]
},
"tswagger.translation": {
"type": "object",
"description": "翻译配置",
"properties": {
"engine": {
"type": "string",
"description": "翻译引擎",
"enum": [
"Bing",
"Microsoft",
"PrivateMicrosoft"
],
"default": "Bing"
},
"Ocp-Apim-Subscription-Key": {
"type": "string"
},
"Authorization": {
"type": "string"
}
},
"default": {
"engine": "Bing"
}
}
}
}
},
"scripts": {
"webview-build": "pnpm --filter tswagger-webview build",
"webview-watch": "pnpm --filter tswagger-webview start",
"esbuild-build": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild-watch": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --sourcemap --watch --define:process.env.NODE_ENV=\\\"development\\\"",
"package": "npm run webview-build && npm run esbuild-build -- --minify && vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"release": "release-it",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"lint-staged": "lint-staged",
"test-compile": "rimraf ./out-test && esbuild ./src/**/*.ts --bundle --outdir=out-test --external:vscode --format=cjs --platform=node",
"test": "node ./out-test/test/runTest.js",
"prepare": "husky install"
},
"devDependencies": {
"@release-it/keep-a-changelog": "^4.0.0",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^7.1.3",
"@types/lodash-es": "^4.17.7",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.77.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.20.1",
"chokidar": "^3.5.3",
"esbuild": "^0.19.4",
"eslint": "^7.19.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"glob": "^7.1.6",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"mocha": "^8.2.1",
"openapi-types": "^12.1.0",
"prettier": "^3.0.2",
"release-it": "^16.1.5",
"rimraf": "^5.0.5",
"typescript": "^4.1.3"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"bing-translate-api": "^4.0.0",
"directory-tree": "^3.5.1",
"fs-extra": "^11.1.1",
"json-schema-to-typescript": "^12.0.0",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.7",
"yaml": "^2.3.1"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write",
"eslint --fix"
]
}
}