-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
449 lines (449 loc) · 14.3 KB
/
package.json
File metadata and controls
449 lines (449 loc) · 14.3 KB
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
{
"name": "magebit-magento-toolbox",
"displayName": "Magento Toolbox",
"description": "Magento 2 code generation, inspection and utility tools",
"publisher": "magebit",
"icon": "resources/logo.jpg",
"version": "1.6.2",
"engines": {
"vscode": "^1.93.1"
},
"repository": {
"type": "git",
"url": "https://github.com/magebitcom/magento-toolbox.git"
},
"homepage": "https://github.com/magebitcom/magento-toolbox",
"bugs": {
"url": "https://github.com/magebitcom/magento-toolbox/issues"
},
"categories": [
"Other"
],
"keywords": [
"magento",
"adobe commerce",
"code completion",
"code generation",
"intellisense"
],
"activationEvents": [
"workspaceContains:**/app/etc/env.php",
"workspaceContains:**/app/etc/di.xml",
"workspaceContains:**/bin/magento"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "Magento Toolbox",
"properties": {
"magento-toolbox.magentoCliPath": {
"type": "string",
"default": "bin/magento",
"description": "Path to Magento CLI tool. Relative to workspace root or absolute path."
},
"magento-toolbox.phpFileHeaderComment": {
"type": "string",
"editPresentation": "multilineText",
"default": "",
"markdownDescription": "`%module%` will be replaced with the module name. \n\n **Do not add comment symbols like `/*` or `*/`, they will be added automatically.**"
},
"magento-toolbox.xmlFileHeaderComment": {
"type": "string",
"editPresentation": "multilineText",
"default": "",
"markdownDescription": "`%module%` will be replaced with the module name. \n\n **Do not add comment symbols like `<!--` or `-->`, they will be added automatically.**"
},
"magento-toolbox.provideXmlCompletions": {
"type": "boolean",
"default": true,
"description": "Enable autocomplete for Magento 2 XML files."
},
"magento-toolbox.provideXmlDefinitions": {
"type": "boolean",
"default": true,
"description": "Enable definitions for Magento 2 XML files."
},
"magento-toolbox.provideXmlHovers": {
"type": "boolean",
"default": true,
"description": "Enable hover decorations for Magento 2 XML files."
}
}
},
"submenus": [
{
"id": "magento-toolbox.submenu",
"label": "Magento Toolbox"
},
{
"id": "magento-toolbox.explorer-submenu",
"label": "Magento Toolbox"
}
],
"commands": [
{
"command": "magento-toolbox.generateModule",
"title": "Generate Module",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateBlock",
"title": "Generate Block",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateViewModel",
"title": "Generate ViewModel",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.indexWorkspace",
"title": "Index Workspace",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateContextPlugin",
"title": "Generate Plugin",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.copyMagentoPath",
"title": "Copy Magento Path",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateXmlCatalog",
"title": "Generate XML URN Catalog",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateObserver",
"title": "Generate Observer",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateEventsXml",
"title": "Generate Sample events.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateGraphqlSchemaFile",
"title": "Generate Sample schema.graphqls",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateRoutesXmlFile",
"title": "Generate Sample routes.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateAclXmlFile",
"title": "Generate Sample acl.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateDiXmlFile",
"title": "Generate Sample di.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateWebapiXmlFile",
"title": "Generate Sample webapi.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generatePreference",
"title": "Generate Preference",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateLayoutXmlFile",
"title": "Generate Layout XML",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generatePageTypesXmlFile",
"title": "Generate Sample page_types.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateCrontabXmlFile",
"title": "Generate Sample crontab.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateEmailTemplatesXmlFile",
"title": "Generate Sample email_templates.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateSectionsXmlFile",
"title": "Generate Sample sections.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateFieldsetXmlFile",
"title": "Generate Sample fieldset.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateViewXmlFile",
"title": "Generate Sample view.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateIndexerXmlFile",
"title": "Generate Sample indexer.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateMviewXmlFile",
"title": "Generate Sample mview.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateWidgetXmlFile",
"title": "Generate Sample widget.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateExtensionAttributesXmlFile",
"title": "Generate Sample extension_attributes.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateSystemXmlFile",
"title": "Generate Sample system.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateConfigXmlFile",
"title": "Generate Sample config.xml",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateDataPatch",
"title": "Generate Data Patch",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.generateCronJob",
"title": "Generate Cron Job",
"category": "Magento Toolbox"
},
{
"command": "magento-toolbox.jumpToModule",
"title": "Jump to Module",
"category": "Magento Toolbox"
}
],
"menus": {
"commandPalette": [
{
"command": "magento-toolbox.generateContextPlugin",
"when": "false"
},
{
"command": "magento-toolbox.copyMagentoPath",
"when": "false"
}
],
"editor/context": [
{
"submenu": "magento-toolbox.submenu",
"group": "magento-toolbox"
}
],
"explorer/context": [
{
"submenu": "magento-toolbox.explorer-submenu",
"group": "magento-toolbox"
}
],
"magento-toolbox.submenu": [
{
"command": "magento-toolbox.generateContextPlugin",
"when": "magento-toolbox.canGeneratePlugin"
},
{
"command": "magento-toolbox.generatePreference",
"when": "magento-toolbox.canGeneratePreference"
}
],
"magento-toolbox.explorer-submenu": [
{
"command": "magento-toolbox.copyMagentoPath",
"title": "Magento Toolbox: Copy Magento Path",
"when": "resourceExtname in magento-toolbox.supportedMagentoPathExtensions && resourcePath =~ /view/"
},
{
"command": "magento-toolbox.generateObserver",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i",
"arguments": []
},
{
"command": "magento-toolbox.generateBlock",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateViewModel",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateEventsXml",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateGraphqlSchemaFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateRoutesXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateAclXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateDiXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateWebapiXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateLayoutXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generatePageTypesXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateCrontabXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateEmailTemplatesXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateSectionsXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateFieldsetXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateViewXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateIndexerXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateMviewXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateWidgetXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateExtensionAttributesXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateSystemXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateConfigXmlFile",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateDataPatch",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
},
{
"command": "magento-toolbox.generateCronJob",
"when": "resourcePath =~ /app\\/code\\/.+\\/.+/i"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "rimraf dist && npm run check-types && npm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:test": "node esbuild.test.js --watch",
"package": "npm run compile",
"compile-tests": "node esbuild.test.js",
"pretest": "npm run compile && npm run compile-tests && npm run lint",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"test": "vscode-test",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
"package-vsix": "vsce package",
"deploy:vsce": "vsce publish",
"deploy:ovsx": "ovsx publish"
},
"devDependencies": {
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@types/sinon": "^17.0.4",
"@types/validatorjs": "^3.15.5",
"@types/vscode": "^1.93.1",
"@types/vscode-webview": "^1.57.5",
"@typescript-eslint/eslint-plugin": "^8.17.0",
"@typescript-eslint/parser": "^8.17.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.2",
"esbuild": "^0.25.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"npm-run-all": "^4.1.5",
"ovsx": "^0.10.1",
"prettier": "^3.4.2",
"rimraf": "^6.0.1",
"sinon": "^19.0.2",
"typescript": "^5.7.2",
"vsce": "^2.15.0"
},
"dependencies": {
"@types/handlebars": "^4.1.0",
"@vscode-elements/elements": "^1.11.0",
"@xml-tools/ast": "^5.0.5",
"@xml-tools/content-assist": "^3.1.11",
"@xml-tools/parser": "^1.0.11",
"@xml-tools/simple-schema": "^3.0.5",
"@xml-tools/validation": "^1.0.16",
"cronstrue": "^2.59.0",
"fast-xml-parser": "^4.5.1",
"formik": "^2.4.6",
"glob": "^11.1.0",
"handlebars": "^4.7.8",
"indent-string": "^5.0.0",
"lodash-es": "^4.17.21",
"minimatch": "^10.0.1",
"node-php-generator": "^1.0.1",
"php-parser": "^3.2.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"slugify": "^1.6.6",
"typescript-json-serializer": "^6.0.1",
"typescript-memoize": "^1.1.1",
"validatorjs": "^3.22.1"
}
}