-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
346 lines (346 loc) · 10.3 KB
/
package.json
File metadata and controls
346 lines (346 loc) · 10.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
{
"name": "b2c-vs-extension",
"displayName": "B2C DX VSCE",
"description": "VS Code extension for B2C Commerce developer experience (Page Designer assistant, B2C CLI integration)",
"version": "0.0.7",
"publisher": "Salesforce",
"license": "Apache-2.0",
"repository": "SalesforceCommerceCloud/b2c-developer-tooling",
"homepage": "https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/packages/b2c-vs-extension",
"bugs": "https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues",
"categories": [
"Other"
],
"dependencies": {
"@salesforce/b2c-tooling-sdk": "workspace:*"
},
"engines": {
"vscode": "^1.105.1"
},
"activationEvents": [
"onView:b2cWebdavExplorer",
"onView:b2cContentExplorer",
"onFileSystem:b2c-webdav",
"onFileSystem:b2c-content",
"onCommand:b2c-dx.openUI",
"onCommand:b2c-dx.handleStorefrontNextCartridge",
"onCommand:b2c-dx.promptAgent",
"onCommand:b2c-dx.listWebDav",
"onCommand:b2c-dx.scapiExplorer",
"onCommand:b2c-dx.odsManagement"
],
"main": "./dist/extension.js",
"contributes": {
"submenus": [
{
"id": "b2c-dx.submenu",
"label": "B2C-DX"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "b2c-dx",
"title": "B2C-DX",
"icon": "media/b2c-icon.svg"
}
]
},
"views": {
"b2c-dx": [
{
"id": "b2cWebdavExplorer",
"name": "WebDAV Browser",
"icon": "media/b2c-icon.svg",
"contextualTitle": "B2C Commerce"
},
{
"id": "b2cContentExplorer",
"name": "Libraries",
"icon": "media/b2c-icon.svg",
"contextualTitle": "B2C Commerce Content"
}
]
},
"viewsWelcome": [
{
"view": "b2cWebdavExplorer",
"contents": "No B2C Commerce instance configured.\n\nCreate a dw.json file in your workspace or set SFCC_* environment variables.\n\n[Refresh](command:b2c-dx.webdav.refresh)"
},
{
"view": "b2cContentExplorer",
"contents": "No content libraries configured.\n\nSet \"contentLibrary\" in dw.json or add a library manually.\n\n[Add Library](command:b2c-dx.content.addLibrary)"
}
],
"commands": [
{
"command": "b2c-dx.openUI",
"title": "Open Page Designer Assistant UI",
"category": "B2C DX - Page Designer Assistant"
},
{
"command": "b2c-dx.handleStorefrontNextCartridge",
"title": "Storefront Next Cartridge",
"category": "B2C DX - Page Designer Assistant"
},
{
"command": "b2c-dx.promptAgent",
"title": "Prompt Agent",
"category": "B2C DX"
},
{
"command": "b2c-dx.listWebDav",
"title": "List WebDAV",
"category": "B2C DX"
},
{
"command": "b2c-dx.scapiExplorer",
"title": "SCAPI API Explorer",
"category": "B2C DX"
},
{
"command": "b2c-dx.odsManagement",
"title": "On Demand Sandbox (ods) Management",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.refresh",
"title": "Refresh",
"icon": "$(refresh)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.newFolder",
"title": "New Folder",
"icon": "$(new-folder)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.uploadFile",
"title": "Upload File",
"icon": "$(cloud-upload)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.delete",
"title": "Delete",
"icon": "$(trash)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.download",
"title": "Download",
"icon": "$(cloud-download)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.openFile",
"title": "Open File",
"icon": "$(go-to-file)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.newFile",
"title": "New File",
"icon": "$(new-file)",
"category": "B2C DX"
},
{
"command": "b2c-dx.webdav.mountWorkspace",
"title": "Open as Workspace Folder",
"icon": "$(root-folder-opened)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.refresh",
"title": "Refresh",
"icon": "$(refresh)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.addLibrary",
"title": "Add Library",
"icon": "$(add)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.removeLibrary",
"title": "Remove Library",
"icon": "$(remove)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.export",
"title": "Export",
"icon": "$(cloud-download)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.exportNoAssets",
"title": "Export without Assets",
"icon": "$(file-code)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.exportAssets",
"title": "Export Assets Only",
"icon": "$(file-media)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.filter",
"title": "Filter",
"icon": "$(filter)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.clearFilter",
"title": "Clear Filter",
"icon": "$(clear-all)",
"category": "B2C DX"
},
{
"command": "b2c-dx.content.import",
"title": "Import Site Archive",
"icon": "$(cloud-upload)",
"category": "B2C DX"
}
],
"menus": {
"view/title": [
{
"command": "b2c-dx.webdav.refresh",
"when": "view == b2cWebdavExplorer",
"group": "navigation"
},
{
"command": "b2c-dx.content.refresh",
"when": "view == b2cContentExplorer",
"group": "navigation"
},
{
"command": "b2c-dx.content.addLibrary",
"when": "view == b2cContentExplorer",
"group": "navigation"
},
{
"command": "b2c-dx.content.filter",
"when": "view == b2cContentExplorer && !b2cContentFilterActive",
"group": "navigation"
},
{
"command": "b2c-dx.content.clearFilter",
"when": "view == b2cContentExplorer && b2cContentFilterActive",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "b2c-dx.webdav.newFile",
"when": "view == b2cWebdavExplorer && viewItem =~ /^(root|directory)$/",
"group": "1_modification@0"
},
{
"command": "b2c-dx.webdav.newFolder",
"when": "view == b2cWebdavExplorer && viewItem =~ /^(root|directory)$/",
"group": "1_modification@1"
},
{
"command": "b2c-dx.webdav.uploadFile",
"when": "view == b2cWebdavExplorer && viewItem =~ /^(root|directory)$/",
"group": "1_modification@2"
},
{
"command": "b2c-dx.webdav.openFile",
"when": "view == b2cWebdavExplorer && viewItem == file",
"group": "1_open@1"
},
{
"command": "b2c-dx.webdav.download",
"when": "view == b2cWebdavExplorer && viewItem == file",
"group": "1_open@2"
},
{
"command": "b2c-dx.webdav.delete",
"when": "view == b2cWebdavExplorer && viewItem =~ /^(directory|file)$/",
"group": "2_destructive@1"
},
{
"command": "b2c-dx.webdav.mountWorkspace",
"when": "view == b2cWebdavExplorer && viewItem =~ /^(root|directory)$/",
"group": "3_workspace@1"
},
{
"command": "b2c-dx.content.export",
"when": "view == b2cContentExplorer && viewItem =~ /^(page|content|component)$/",
"group": "1_export@1"
},
{
"command": "b2c-dx.content.exportNoAssets",
"when": "view == b2cContentExplorer && viewItem =~ /^(page|content|component)$/",
"group": "1_export@2"
},
{
"command": "b2c-dx.content.exportAssets",
"when": "view == b2cContentExplorer && viewItem =~ /^(page|content|component)$/",
"group": "1_export@3"
},
{
"command": "b2c-dx.content.removeLibrary",
"when": "view == b2cContentExplorer && viewItem == library",
"group": "2_manage@1"
}
],
"explorer/context": [
{
"command": "b2c-dx.webdav.download",
"when": "resourceScheme == b2c-webdav && !explorerResourceIsFolder",
"group": "navigation"
},
{
"submenu": "b2c-dx.submenu",
"when": "explorerResourceIsFolder",
"group": "7_modification@9"
}
],
"b2c-dx.submenu": [
{
"command": "b2c-dx.content.import",
"when": "explorerResourceIsFolder"
}
]
}
},
"scripts": {
"build": "node scripts/esbuild-bundle.mjs",
"watch": "node scripts/esbuild-bundle.mjs --watch",
"vscode:prepublish": "pnpm run typecheck:agent && pnpm --filter @salesforce/b2c-tooling-sdk run build && node scripts/esbuild-bundle.mjs",
"package": "pnpm exec vsce package --no-dependencies",
"lint": "eslint",
"lint:agent": "eslint --quiet",
"typecheck:agent": "tsc -p . --noEmit --pretty false",
"format": "prettier --write src",
"format:check": "prettier --check src",
"pretest": "tsc -p tsconfig.test.json",
"test": "vscode-test",
"posttest": "pnpm run lint",
"analyze": "ANALYZE_BUNDLE=1 node scripts/esbuild-bundle.mjs"
},
"devDependencies": {
"@eslint/compat": "catalog:",
"@types/mocha": "catalog:",
"@types/node": "catalog:",
"@types/vscode": "^1.105.1",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.24.0",
"eslint": "catalog:",
"eslint-config-prettier": "catalog:",
"eslint-plugin-header": "catalog:",
"eslint-plugin-prettier": "catalog:",
"prettier": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
}
}