-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
339 lines (339 loc) · 8.49 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"name": "vscode-commandbox",
"publisher": "ortus-solutions",
"displayName": "CommandBox",
"description": "Extension to add support for CommandBox",
"version": "1.2.0-snapshot",
"license": "MIT",
"engines": {
"vscode": "^1.66.2"
},
"repository": {
"type": "git",
"url": "https://github.com/Ortus-Solutions/vscode-commandbox.git"
},
"bugs": {
"url": "https://github.com/Ortus-Solutions/vscode-commandbox/issues"
},
"icon": "images/commandbox-128-logo.png",
"categories": [
"Other"
],
"scripts": {
"clean": "rimraf out dist *.vsix",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./",
"lint": "eslint -c .eslintrc.js --ext .ts src/*.ts",
"pack": "vsce package",
"vscode:prepublish": "webpack --mode production"
},
"dependencies": {
"@octokit/rest": "~19.0.4",
"jsonc-parser": "^3.2.0",
"micromatch": "~4.0.5",
"request-light": "^0.5.8"
},
"devDependencies": {
"@types/micromatch": "4.0.2",
"@types/node": "~16.11.62",
"@types/vscode": "~1.66.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"clean-webpack-plugin": "4.0.0",
"eslint": "^8.24.0",
"eslint-plugin-jsdoc": "^39.3.6",
"rimraf": "^3.0.2",
"ts-loader": "^9.4.1",
"typescript": "^4.8.4",
"vsce": "^2.11.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"
},
"main": "./dist/extension",
"activationEvents": [
"onTaskType:commandbox",
"workspaceContains:box.json",
"workspaceContains:server*.json",
"onView:commandbox",
"onCommand:commandbox.runScriptFromFolder"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "This extension executes tasks, which require trust to run."
}
},
"contributes": {
"views": {
"explorer": [
{
"id": "commandbox",
"name": "CommandBox Scripts",
"when": "commandbox:showScriptExplorer || config.commandbox.enableScriptExplorer",
"icon": "$(json)",
"contextualTitle": "CommandBox Scripts"
}
]
},
"viewsWelcome": [
{
"view": "commandbox",
"contents": "No scripts found.",
"when": "config.commandbox.autoDetect != off"
},
{
"view": "commandbox",
"contents": "The setting \"commandbox.autoDetect\" is \"off\".\n[Set autoDetect on](command:commandbox.autoDetectOn)",
"when": "config.commandbox.autoDetect == off"
}
],
"commands": [
{
"command": "commandbox.runScript",
"title": "Run Script",
"icon": "$(run)"
},
{
"command": "commandbox.openScript",
"title": "Open Script",
"icon": "$(go-to-file)"
},
{
"command": "commandbox.runInstall",
"title": "Run Install"
},
{
"command": "commandbox.refresh",
"title": "Refresh Scripts",
"icon": "$(refresh)"
},
{
"command": "commandbox.runSelectedScript",
"title": "Run Selected Script",
"icon": "$(run)"
},
{
"command": "commandbox.runScriptFromFolder",
"title": "Run Script in Folder...",
"icon": "$(run)"
},
{
"command": "commandbox.autoDetectOn",
"title": "Set autoDetect on"
}
],
"menus": {
"commandPalette": [
{
"command": "commandbox.refresh",
"when": "false"
},
{
"command": "commandbox.runScript",
"when": "false"
},
{
"command": "commandbox.openScript",
"when": "false"
},
{
"command": "commandbox.runInstall",
"when": "false"
},
{
"command": "commandbox.runSelectedScript",
"when": "false"
},
{
"command": "commandbox.runScriptFromFolder",
"when": "false"
}
],
"editor/context": [
{
"command": "commandbox.runSelectedScript",
"when": "resourceFilename == 'box.json'",
"group": "navigation@+1"
}
],
"explorer/context": [
{
"command": "commandbox.runScriptFromFolder",
"when": "config.commandbox.enableRunFromFolder && explorerViewletVisible && explorerResourceIsFolder",
"group": "2_workspace"
}
],
"view/title": [
{
"command": "commandbox.refresh",
"when": "view == commandbox",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "commandbox.openScript",
"when": "view == commandbox && viewItem == boxJSON",
"group": "navigation@1"
},
{
"command": "commandbox.runInstall",
"when": "view == commandbox && viewItem == boxJSON",
"group": "navigation@2"
},
{
"command": "commandbox.openScript",
"when": "view == commandbox && viewItem == script",
"group": "navigation@1"
},
{
"command": "commandbox.runScript",
"when": "view == commandbox && viewItem == script",
"group": "navigation@2"
},
{
"command": "commandbox.runScript",
"when": "view == commandbox && viewItem == script",
"group": "inline"
}
]
},
"configuration": {
"id": "commandbox",
"type": "object",
"title": "CommandBox",
"properties": {
"commandbox.autoDetect": {
"type": "string",
"enum": [
"off",
"on"
],
"default": "on",
"scope": "resource",
"description": "Controls whether CommandBox scripts should be automatically detected."
},
"commandbox.exclude": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"description": "Configure glob patterns for folders that should be excluded from automatic script detection.",
"scope": "resource"
},
"commandbox.enableScriptExplorer": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Enable an explorer view for CommandBox scripts when there is no top-level 'box.json' file."
},
"commandbox.enableRunFromFolder": {
"type": "boolean",
"default": false,
"scope": "resource",
"description": "Enable running CommandBox scripts contained in a folder from the Explorer context menu."
},
"commandbox.scriptExplorerAction": {
"type": "string",
"enum": [
"open",
"run"
],
"description": "The default click action used in the scripts explorer: `open` or `run`, the default is `open`.",
"markdownDescription": "The default click action used in the scripts explorer: `open` or `run`, the default is `open`.",
"scope": "window",
"default": "open"
},
"commandbox.buildNames": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"build",
"compile",
"watch"
],
"description": "When a VS Code task contains this as part of its name, it will be assigned as a build task.",
"scope": "resource"
},
"commandbox.testNames": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"test"
],
"description": "When a VS Code task name starts with this, it will be assigned as a test task.",
"scope": "resource"
},
"commandbox.scriptExplorerExclude": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "An array of regular expressions that indicate which scripts should be excluded from the CommandBox Scripts view.",
"scope": "resource",
"default": []
},
"commandbox.scriptHover": {
"type": "boolean",
"description": "Display hover with 'Run' command for scripts.",
"default": true,
"scope": "window"
},
"commandbox.forgebox.fetchOnlinePackageInfo": {
"type": "boolean",
"description": "Fetch data from ForgeBox to provide auto-completion and information on hover features on dependencies.",
"default": true,
"scope": "window",
"tags": [
"usesOnlineServices"
]
},
"commandbox.forgebox.endpointUrl": {
"type": "string",
"description": "The URL for the ForgeBox endpoint. Customize for ForgeBox Enterprise.",
"default": "https://www.forgebox.io",
"scope": "window"
}
}
},
"jsonValidation": [
{
"fileMatch": [
"server.json",
"server-*.json"
],
"url": "./resources/schemas/server.schema.json"
},
{
"fileMatch": "box.json",
"url": "./resources/schemas/box.schema.json"
}
],
"taskDefinitions": [
{
"type": "commandbox",
"required": [
"script"
],
"properties": {
"script": {
"type": "string",
"description": "The CommandBox script to customize."
},
"path": {
"type": "string",
"description": "The path to the folder of the box.json file that provides the script. Can be omitted."
}
}
}
]
}
}