forked from viperet/vscode-magento-wizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
218 lines (218 loc) · 8.02 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
{
"name": "vscode-magento-wizard",
"repository": {
"url": "https://github.com/viperet/vscode-magento-wizard",
"type": "git"
},
"bugs": {
"url": "https://github.com/viperet/vscode-magento-wizard/issues",
"email": "viperet@gmail.com"
},
"publisher": "viperet",
"displayName": "MagentoWizard",
"description": "Will ease life of the Magento 2 developer by automating some repeating tasks, like injecting dependency",
"version": "2.5.1",
"extensionKind": [
"workspace"
],
"preview": false,
"category": "Other",
"icon": "images/magento-wizard-logo.png",
"engines": {
"vscode": "^1.45.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:magentowizard.newExtension",
"onCommand:magentowizard.injectDependency",
"onCommand:magentowizard.addObserver",
"onCommand:magentowizard.generateCatalog",
"onCommand:magentowizard.addPlugin",
"onCommand:magentowizard.addCRUD",
"workspaceContains:**/app/etc/env.php",
"workspaceContains:**/app/etc/di.xml",
"workspaceContains:**/bin/magento"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": [
{
"title": "MagentoWizard",
"properties": {
"magentoWizard.tasks.provider": {
"type": "boolean",
"default": "true",
"description": "Enable bin/magento commands task provider",
"scope": "resource"
},
"magentoWizard.tasks.php": {
"type": "string",
"default": "php",
"description": "Path to PHP binary",
"scope": "resource"
},
"magentoWizard.tasks.user": {
"type": "string",
"default": "",
"markdownDescription": "Magento file system owner user, see [Overview of ownership and permissions](https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-sys-perms-over.html) for details. MagentoWizard uses `sudo -u <username> bin/magento`, so you should [configure your system](https://github.com/viperet/vscode-magento-wizard/wiki/Allow-sudo-to-run-commands-as-certain-user-without-password) to allow sudo without asking a password. Current user will be used if empty.",
"scope": "resource"
},
"magentoWizard.magentoRoot": {
"type": "string",
"default": "",
"description": "Path to the root of Magento, absolute or relative to the workspace folder. Autodetected if empty.",
"scope": "resource"
},
"magentoWizard.autoTemplates": {
"type": "string",
"default": "**/*",
"description": "Glob Pattern, allows to enable auto templetes for all or just some of the Magento files. Set it to empty string to disable this feature.",
"scope": "resource"
}
}
}
],
"commands": [
{
"command": "magentowizard.newExtension",
"title": "Create a new extension",
"category": "MagentoWizard"
},
{
"command": "magentowizard.injectDependency",
"title": "Inject Dependency",
"category": "MagentoWizard",
"enablement": "editorLangId == php",
"icon": {
"dark": "icons/syringe-dark.svg",
"light": "icons/syringe-light.svg"
}
},
{
"command": "magentowizard.addObserver",
"title": "Add Observer",
"category": "MagentoWizard"
},
{
"command": "magentowizard.addPlugin",
"title": "Add Plugin",
"category": "MagentoWizard"
},
{
"command": "magentowizard.addCRUD",
"title": "Add CRUD Model/ResourceModel/Collection",
"category": "MagentoWizard"
},
{
"command": "magentowizard.generateCatalog",
"title": "Generate XML Catalog",
"category": "MagentoWizard"
},
{
"command": "magentowizard.reindex",
"title": "Reindex Workspace",
"category": "MagentoWizard"
},
{
"command": "magentowizard.switchtoblocktemplate",
"title": "Switch to Block/Template",
"enablement": "editorLangId == php",
"category": "MagentoWizard"
},
{
"command": "magentowizard.copyPath",
"title": "Copy Magento Path",
"category": "MagentoWizard"
}
],
"taskDefinitions": [
{
"type": "magento",
"required": [
"command"
],
"properties": {
"command": {
"type": "string",
"description": "bin/magento command to run"
},
"args": {
"type": "array",
"description": "Optional command arguments"
}
}
}
],
"problemMatchers": [
{
"name": "magento",
"label": "Magento",
"applyTo": "allDocuments",
"severity": "error",
"source": "bin/magento",
"fileLocation": "absolute",
"pattern": {
"regexp": "PHP Parse error: (.+?) in (.+?) on line (\\d+)()",
"file": 2,
"line": 3,
"column": 4,
"message": 1
}
}
],
"menus": {
"explorer/context": [
{
"command": "magentowizard.copyPath",
"when": "resourcePath =~ //app/design// || resourcePath =~ //view/(adminhtml|frontend|base)/(web|templates)// && resourceExtname in magentowizard.supportedCopyPathExt",
"group": "6_copypath"
}
]
}
},
"scripts": {
"_vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@icetee/handlebars-loader": "^1.6.0",
"@types/mocha": "^5.2.6",
"@types/node": "^10.17.46",
"@types/vscode": "^1.45.0",
"glob-parent": ">=5.1.2",
"handlebars": "^4.7.7",
"mocha": "^6.2.3",
"ts-loader": "^6.2.2",
"tslint": "^5.20.1",
"typescript": "^3.9.7",
"vscode-test": "^1.4.1",
"webpack": "^5.41.0",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.165",
"@types/minimatch": "^3.0.4",
"@types/semver": "^7.3.4",
"case": "^1.6.3",
"delay": "^4.4.0",
"glob": "^7.1.6",
"lodash": "^4.17.21",
"minimatch": "^3.0.4",
"node-cache": "^5.1.2",
"p-progress": "^0.4.2",
"php-parser": "^3.0.2",
"semver": "^7.3.2",
"xml-js": "^1.6.11",
"xml-zero-lexer": "^2.1.0"
}
}