generated from tjx666/vscode-extension-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
256 lines (256 loc) · 9.85 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"name": "open-in-external-app",
"displayName": "Open in External App",
"version": "0.10.0",
"description": "Open file with external application in VSCode",
"publisher": "YuTengjing",
"author": {
"name": "YuTengjing",
"url": "https://github.com/tjx666",
"email": "ytj2713151713@gmail.com"
},
"icon": "images/logo.png",
"license": "SEE LICENSE IN LICENSE",
"badges": [
{
"url": "https://img.shields.io/badge/License-MIT-brightgreen.svg",
"description": "License: MIT",
"href": "https://github.com/tjx666/open-in-external-app/blob/master/LICENSE"
},
{
"url": "https://img.shields.io/badge/PRs-welcome-brightgreen.svg",
"description": "PRs Welcome",
"href": "https://github.com/tjx666/open-in-external-app"
}
],
"homepage": "https://github.com/tjx666/open-in-external-app/blob/master/README.md",
"bugs": {
"url": "https://github.com/tjx666/open-in-external-app/issues",
"email": "ytj2713151713@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/tjx666/open-in-external-app"
},
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"keywords": [
"open",
"opn",
"view",
"app",
"application",
"external",
"other",
"system",
"system default",
"open in",
"open file",
"IDE",
"editor",
"typora",
"mark text",
"electron",
"photoshop",
"adobe",
"ps",
"IDEA",
"sublime",
"WebStorm",
"PyCharm",
"chrome",
"firefox",
"browser",
"client",
"code runner"
],
"main": "./out/src/extension.js",
"scripts": {
"vscode:prepublish": "pnpm esbuild:base --minify",
"preinstall": "npx only-allow pnpm",
"postinstall": "stale-dep -u",
"prepare": "simple-git-hooks",
"clean": "npx rimraf -rf ./out",
"esbuild:base": "stale-dep && tsx scripts/esbuild.ts",
"esbuild:watch": "pnpm esbuild:base --sourcemap --watch",
"esbuild:analyze": "pnpm esbuild:base --minify --metafile --analyze && esbuild-visualizer --metadata ./meta.json --open",
"compile:test": "pnpm clean && tsc -b ./test/tsconfig.json",
"lint": "eslint src --ext ts",
"test": "stale-dep && pnpm compile:test && node ./out/test/runTests.js",
"package": "vsce package --no-dependencies",
"release": "npx @yutengjing/release",
"publish:vs-marketplace": "vsce publish --no-dependencies",
"publish:open-vsx": "ovsx publish --no-dependencies"
},
"contributes": {
"commands": [
{
"command": "openInExternalApp.open",
"title": "%cmd.open%"
},
{
"command": "openInExternalApp.openMultiple",
"title": "%cmd.openMultiple%"
}
],
"menus": {
"explorer/context": [
{
"when": "!explorerResourceIsFolder && isFileSystemResource",
"command": "openInExternalApp.open",
"alt": "openInExternalApp.openMultiple",
"group": "navigation@10"
}
],
"editor/title/context": [
{
"when": "isFileSystemResource",
"command": "openInExternalApp.open",
"alt": "openInExternalApp.openMultiple",
"group": "navigation@10"
}
]
},
"configuration": {
"title": "%cmd.open%",
"type": "Object",
"default": {},
"properties": {
"openInExternalApp.enableLog": {
"type": "boolean",
"default": true
},
"openInExternalApp.openMapper": {
"type": "array",
"description": "%cfg.openInExternalApp.openMapper%",
"default": [],
"items": {
"type": "object",
"required": [
"apps"
],
"properties": {
"id": {
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.id%"
},
"extensionName": {
"anyOf": [
{
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.extensionName.string%"
},
{
"type": "array",
"description": "%cfg.openInExternalApp.openMapper.item.extensionName.array%",
"items": {
"type": "string"
}
}
]
},
"apps": {
"description": "%cfg.openInExternalApp.openMapper.item.apps%",
"anyOf": [
{
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.apps.string%"
},
{
"type": "array",
"items": {
"type": "object",
"description": "%cfg.openInExternalApp.openMapper.item.apps.array%",
"default": [],
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.apps.item.title%"
},
"openCommand": {
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.apps.string%"
},
"shellCommand": {
"type": "string",
"description": "%cfg.openInExternalApp.openMapper.item.apps.item.shellCommand%"
},
"args": {
"type": "array",
"description": "%cfg.openInExternalApp.openMapper.item.apps.item.args%",
"default": [],
"items": {
"type": "string"
}
},
"isElectronApp": {
"type": "boolean",
"description": "%cfg.openInExternalApp.openMapper.item.apps.item.isElectronApp%",
"default": false
}
}
}
}
]
}
}
}
}
}
}
},
"eslintConfig": {
"extends": "@yutengjing/eslint-config-typescript",
"ignorePatterns": [
"test-workspace"
]
},
"prettier": "@yutengjing/prettier-config",
"lint-staged": {
"*.{ts,json,md}": [
"eslint --fix",
"prettier --write"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"dependencies": {
"joi": "17.9.2",
"open": "8.4.2",
"vscode-nls-i18n": "0.2.4",
"wsl-path": "4.0.0"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.17.2",
"@types/vscode": "^1.80.0",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.20.1",
"@yutengjing/eslint-config-typescript": "^0.4.2",
"@yutengjing/prettier-config": "^0.0.1",
"@yutengjing/release": "^0.1.0",
"@yutengjing/tsconfig-node": "^0.0.3",
"esbuild": "^0.18.17",
"esbuild-visualizer": "^0.4.1",
"eslint": "^8.46.0",
"glob": "^10.3.3",
"lint-staged": "^13.2.3",
"mocha": "^10.2.0",
"ovsx": "^0.8.2",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
"simple-git-hooks": "^2.9.0",
"stale-dep": "^0.7.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6"
}
}