-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
314 lines (314 loc) · 8.77 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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
{
"name": "jungletv-vsc",
"displayName": "JungleTV AF development helper",
"description": "Helper for developing applications targeting the JungleTV Application Framework",
"version": "0.3.1",
"publisher": "jungletv-team",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tnyim/jungletv"
},
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onFileSystem:jungletvaf",
"onCommand:workbench.action.tasks.runTask",
"onDebug",
"onStartupFinished"
],
"browser": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "jungletvaf.testCommand",
"title": "Generic test command",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.configureNewEnvironment",
"title": "Configure New Environment",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.forgetEnvironment",
"title": "Forget Environment",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.addApplicationToWorkspace",
"title": "Add Application to Workspace",
"category": "JungleTV AF",
"enablement": "jungletvaf.hasConfiguredEnvironments"
},
{
"command": "jungletvaf.launchApplication",
"title": "Launch Application",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.launchAndAttachToApplication",
"title": "Launch and Attach to Application",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.attachToApplication",
"title": "Attach to Application",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.restartApplication",
"title": "Restart Application",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.stopApplication",
"title": "Stop Application",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.openApplicationEditorInBrowser",
"title": "Edit in Browser",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.makeFilePublic",
"title": "Make File Public",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.makeFileInternal",
"title": "Make File Internal",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.setFileMimeType",
"title": "Set MIME Type...",
"category": "JungleTV AF"
},
{
"command": "jungletvaf.debug.openConsoleInBrowser",
"title": "Open Console in Browser",
"category": "JungleTV AF",
"icon": "$(debug-console)"
}
],
"menus": {
"commandPalette": [
{
"command": "jungletvaf.testCommand"
},
{
"command": "jungletvaf.configureNewEnvironment",
"when": "true"
},
{
"command": "jungletvaf.forgetEnvironment",
"when": "true"
},
{
"command": "jungletvaf.addApplicationToWorkspace",
"when": "jungletvaf.hasConfiguredEnvironments"
},
{
"command": "jungletvaf.launchApplication",
"when": "false"
},
{
"command": "jungletvaf.launchAndAttachToApplication",
"when": "false"
},
{
"command": "jungletvaf.attachToApplication",
"when": "false"
},
{
"command": "jungletvaf.restartApplication",
"when": "false"
},
{
"command": "jungletvaf.stopApplication",
"when": "false"
},
{
"command": "jungletvaf.openApplicationEditorInBrowser",
"when": "false"
},
{
"command": "jungletvaf.makeFilePublic",
"when": "false"
},
{
"command": "jungletvaf.makeFileInternal",
"when": "false"
},
{
"command": "jungletvaf.setFileMimeType",
"when": "false"
},
{
"command": "jungletvaf.debug.openConsoleInBrowser",
"when": "false"
}
],
"explorer/context": [
{
"command": "jungletvaf.launchApplication",
"group": "jungletvaf_01_manage_application_execution",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/ && resource not in jungletvaf.runningApplications && resource in jungletvaf.launchableApplications"
},
{
"command": "jungletvaf.launchAndAttachToApplication",
"group": "jungletvaf_01_manage_application_execution",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/ && resource not in jungletvaf.runningApplications && resource in jungletvaf.launchableApplications"
},
{
"command": "jungletvaf.restartApplication",
"group": "jungletvaf_01_manage_application_execution",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/ && resource in jungletvaf.runningApplications && resource in jungletvaf.launchableApplications"
},
{
"command": "jungletvaf.attachToApplication",
"group": "jungletvaf_01_manage_application_execution",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/ && resource in jungletvaf.runningApplications && resource in jungletvaf.launchableApplications"
},
{
"command": "jungletvaf.stopApplication",
"group": "jungletvaf_01_manage_application_execution",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/ && resource in jungletvaf.runningApplications"
},
{
"command": "jungletvaf.openApplicationEditorInBrowser",
"group": "7_modification",
"when": "explorerResourceIsFolder && resourceScheme == jungletvaf && resourcePath =~ /^\\/[^/]+$/"
},
{
"command": "jungletvaf.makeFilePublic",
"group": "7_modification",
"when": "!explorerResourceIsFolder && resourceScheme == jungletvaf && resource not in jungletvaf.publicFiles"
},
{
"command": "jungletvaf.makeFileInternal",
"group": "7_modification",
"when": "!explorerResourceIsFolder && resourceScheme == jungletvaf && resource in jungletvaf.publicFiles"
},
{
"command": "jungletvaf.setFileMimeType",
"group": "7_modification",
"when": "!explorerResourceIsFolder && resourceScheme == jungletvaf"
},
{
"command": "jungletvaf.addApplicationToWorkspace",
"group": "2_workspace",
"when": "jungletvaf.hasConfiguredEnvironments"
}
],
"debug/toolBar": [
{
"command": "jungletvaf.debug.openConsoleInBrowser",
"when": "debugType == jungletvaf"
}
]
},
"taskDefinitions": [
{
"type": "JungleTV",
"required": [
"subtype"
],
"properties": {
"subtype": {
"type": "string",
"description": "The subtype of task"
},
"application": {
"type": "object",
"description": "The endpoint and ID of the application to launch"
},
"restart": {
"type": "boolean",
"description": "Whether to restart an application that is already running"
}
}
}
],
"debuggers": [
{
"type": "jungletvaf",
"label": "JungleTV Application Console",
"languages": [
"javascript",
"typescript"
],
"configurationAttributes": {
"launch": {
"required": [
"application"
],
"application": {
"type": "object",
"description": "The endpoint and ID of the application"
}
},
"attach": {
"required": [
"application"
],
"application": {
"type": "object",
"description": "The endpoint and ID of the application"
}
}
}
}
],
"viewsWelcome": [
{
"view": "explorer",
"contents": "You can also open a JungleTV application for editing.\n[Open JungleTV Application](command:jungletvaf.addApplicationToWorkspace)",
"when": "jungletvaf.hasConfiguredEnvironments"
},
{
"view": "explorer",
"contents": "You could also open a JungleTV AF application for editing, if you had a JungleTV environment configured.\n[Configure JungleTV Environment](command:jungletvaf.configureNewEnvironment)",
"when": "!jungletvaf.hasConfiguredEnvironments"
}
]
},
"scripts": {
"package": "vsce package --no-dependencies",
"vscode:prepublish": "webpack --mode production --devtool hidden-source-map",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"lint": "eslint \"src/**/*.ts\""
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/vscode": "^1.73.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vscode/debugadapter": "^1.59.0",
"@vscode/vsce": "^2.24.0",
"eslint": "^8.26.0",
"protoc-gen-js": "^3.21.2",
"ts-loader": "^7.0.5",
"ts-protoc-gen": "^0.15.0",
"typescript": "^5.0.2",
"url": "^0.11.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@improbable-eng/grpc-web": "^0.15.0",
"@types/google-protobuf": "^3.15.12",
"async-mutex": "^0.4.0",
"google-protobuf": "^3.21.2",
"path-browserify": "^1.0.1"
}
}