forked from decentraland/editor-sdk7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
459 lines (459 loc) · 14.6 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
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
450
451
452
453
454
455
456
457
458
459
{
"name": "decentraland-sdk7",
"displayName": "Decentraland Editor SDK7",
"description": "Visual Studio Code extension for Decentraland SDK7",
"icon": "resources/logo128x128.png",
"version": "0.0.0-development",
"publisher": "DecentralandFoundation",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/decentraland/editor-sdk7"
},
"engines": {
"node": "^20.0.0",
"vscode": "^1.65.0"
},
"categories": [
"Extension Packs"
],
"activationEvents": [
"onDebug",
"onCommand:decentraland-sdk7.commands.runInspector",
"onCommand:decentraland-sdk7.walkthrough.createProject",
"onCommand:decentraland-sdk7.walkthrough.viewCode"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "decentraland-sdk7",
"title": "Decentraland SDK7",
"icon": "resources/activitybar.svg"
}
]
},
"views": {
"decentraland-sdk7": [
{
"id": "decentraland-sdk7.home",
"name": "Editor"
},
{
"id": "decentraland-sdk7.dependencies",
"name": "Dependencies",
"when": "decentraland-sdk7.isDCL"
}
]
},
"viewsWelcome": [
{
"view": "decentraland-sdk7.home",
"contents": "In order to use the Decentraland features you need to open a folder with an existing project, or open a folder on which create a new project.\n[Open Folder](command:vscode.openFolder)",
"when": "workbenchState == empty"
},
{
"view": "decentraland-sdk7.home",
"contents": "The current folder is empty, go ahead and create a new Decentraland SDK7 project:\n[Create Project](command:decentraland-sdk7.commands.init)\nTo learn more [read our docs](https://docs.decentraland.org/).",
"when": "workbenchState != empty && !decentraland-sdk7.isDCL && decentraland.isEmpty"
},
{
"view": "decentraland-sdk7.home",
"contents": "The current folder does not contain a Decentraland SDK7 project. Open a folder with an existing project, or an empty folder to scaffold a new project:\n[Open Folder](command:vscode.openFolder)\nTo learn more [read our docs](https://docs.decentraland.org/).",
"when": "workbenchState != empty && !decentraland-sdk7.isDCL && !decentraland.isEmpty"
},
{
"view": "decentraland-sdk7.home",
"contents": "Visually arrange and configure the elements in your scene\n[Visual Editor](command:decentraland-sdk7.commands.inspector)",
"when": "workbenchState != empty && decentraland-sdk7.isDCL && !decentraland.isEmpty"
},
{
"view": "decentraland-sdk7.home",
"contents": "Run and preview your scene locally.\n[Run Scene](command:decentraland-sdk7.commands.browser.run)",
"when": "workbenchState != empty && decentraland-sdk7.isDCL"
},
{
"view": "decentraland-sdk7.home",
"contents": "Ready to go live?\nPublish and open your scene to visitors in the Metaverse.\n[Publish to Genesis City](command:decentraland-sdk7.commands.deploy)",
"when": "workbenchState != empty && decentraland-sdk7.isDCL"
},
{
"view": "decentraland-sdk7.home",
"contents": "[Publish to World](command:decentraland-sdk7.commands.deployWorld)",
"when": "workbenchState != empty && decentraland-sdk7.isDCL"
}
],
"customEditors": [
{
"viewType": "decentraland-sdk7.GLTFPreview",
"displayName": "Preview",
"selector": [
{
"filenamePattern": "*.{gltf,glb}"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "decentraland-sdk7.commands.init",
"title": "Create Project",
"enablement": "!decentraland-sdk7.isDCL",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.install",
"title": "Install Package",
"icon": "$(add)",
"enablement": "decentraland-sdk7.isDCL",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.uninstall",
"title": "Uninstall Package",
"icon": "$(remove)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.update",
"title": "Update Dependencies",
"icon": "$(sync)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.dependencies.update",
"title": "Update",
"icon": "$(arrow-up)",
"category": "Dependencies"
},
{
"command": "decentraland-sdk7.dependencies.delete",
"title": "Delete",
"icon": "$(trash)",
"category": "Dependencies"
},
{
"command": "decentraland-sdk7.commands.browser.run",
"title": "Open in browser",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.browser.web3",
"title": "Open In Browser With Web3",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.browser.deploy",
"title": "Open in browser",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.deploy",
"title": "Publish Scene",
"icon": "$(rocket)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.deployWorld",
"title": "Publish Scene To Your World",
"icon": "$(rocket)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.deployTest",
"title": "Publish Scene To Test Server",
"icon": "$(rocket)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.deployCustom",
"title": "Publish Scene To Custom Server",
"icon": "$(rocket)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.start",
"title": "Run Scene",
"icon": "$(play)",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.inspector",
"title": "Visual Editor",
"icon": "$(play)",
"category": "Decentraland Editor"
},
{
"command": "decentraland-sdk7.commands.getDebugURL",
"title": "Get Debug URL",
"category": "Decentraland"
},
{
"command": "decentraland-sdk7.commands.restart",
"title": "Restart Server",
"icon": "$(debug-restart)",
"category": "Decentraland"
}
],
"keybindings": [
{
"command": "decentraland-sdk7.commands.start",
"key": "ctrl+e",
"mac": "cmd+e",
"when": "decentraland-sdk7.isDCL"
}
],
"menus": {
"commandPalette": [
{
"command": "decentraland-sdk7.commands.browser.run",
"when": "false"
},
{
"command": "decentraland-sdk7.commands.browser.deploy",
"when": "false"
},
{
"command": "decentraland-sdk7.dependencies.delete",
"when": "false"
},
{
"command": "decentraland-sdk7.dependencies.update",
"when": "false"
},
{
"command": "decentraland-sdk7.commands.getDebugURL",
"when": "false"
}
],
"editor/title": [
{
"command": "decentraland-sdk7.commands.browser.run",
"group": "navigation",
"when": "activeWebviewPanelId == decentraland-sdk7.webviews.RunScene"
},
{
"command": "decentraland-sdk7.commands.browser.deploy",
"group": "navigation",
"when": "activeWebviewPanelId == decentraland-sdk7.webviews.PublishScene"
}
],
"view/title": [
{
"command": "decentraland-sdk7.commands.deployTest",
"when": "view == decentraland-sdk7.home && decentraland-sdk7.isDCL",
"group": "1_actions@1"
},
{
"command": "decentraland-sdk7.commands.deployCustom",
"when": "view == decentraland-sdk7.home && decentraland-sdk7.isDCL",
"group": "1_actions@2"
},
{
"command": "decentraland-sdk7.commands.browser.web3",
"when": "view == decentraland-sdk7.home && decentraland-sdk7.isDCL",
"group": "1_actions@3"
},
{
"command": "decentraland-sdk7.commands.restart",
"when": "view == decentraland-sdk7.home && decentraland-sdk7.isDCL",
"group": "navigation"
},
{
"command": "decentraland-sdk7.commands.install",
"when": "view == decentraland-sdk7.dependencies",
"group": "navigation@1"
},
{
"command": "decentraland-sdk7.commands.uninstall",
"when": "view == decentraland-sdk7.dependencies",
"group": "navigation@2"
},
{
"command": "decentraland-sdk7.commands.update",
"when": "view == decentraland-sdk7.dependencies",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "decentraland-sdk7.dependencies.update",
"when": "view == decentraland-sdk7.dependencies && viewItem == dependency",
"group": "inline@1"
},
{
"command": "decentraland-sdk7.dependencies.delete",
"when": "view == decentraland-sdk7.dependencies && viewItem == dependency",
"group": "inline@2"
}
]
},
"walkthroughs": [
{
"id": "decentraland-sdk7",
"title": "Decentraland SDK7",
"description": "This guide will walk you through creating a Decentraland scene.",
"steps": [
{
"id": "open",
"title": "Open Folder",
"description": "Open an empty folder to create where you will create your Decentraland project.\n[Open Folder](command:vscode.openFolder)",
"media": {
"image": "resources/activitybar.svg",
"altText": "Empty image"
},
"completionEvents": [
"onCommand:command:vscode.openFolder"
],
"when": "workbenchState == empty"
},
{
"id": "init",
"title": "Create project",
"description": "Scaffold an example scene project.\n[Create Project](command:decentraland-sdk7.walkthrough.createProject)",
"media": {
"image": "resources/activitybar.svg",
"altText": "Empty image"
},
"completionEvents": [
"onCommand:decentraland-sdk7.walkthrough.createProject"
],
"when": "workbenchState != empty"
},
{
"id": "run",
"title": "Run scene",
"description": "Run the scene you just created, try interacting with the cube.\n[Run Scene](command:decentraland-sdk7.commands.start)",
"media": {
"image": "resources/activitybar.svg",
"altText": "Run scene"
},
"completionEvents": [
"onCommand:decentraland-sdk7.commands.start"
],
"when": "workbenchState != empty"
},
{
"id": "code",
"title": "View code",
"description": "Open the source code of the scene, try making changes to it and see them reflected on the preview screen.\n[View Code](command:decentraland-sdk7.walkthrough.viewCode)",
"media": {
"image": "resources/activitybar.svg",
"altText": "View code"
},
"completionEvents": [
"onCommand:decentraland-sdk7.walkthrough.viewCode"
],
"when": "workbenchState != empty"
},
{
"id": "docs",
"title": "Read docs",
"description": "You can learn more by reading our docs.\n[Open Docs](https://docs.decentraland.org)",
"media": {
"image": "resources/activitybar.svg",
"altText": "Read docs"
},
"completionEvents": [
"onLink:https://docs.decentraland.org"
],
"when": "workbenchState != empty"
}
]
}
],
"breakpoints": [
{
"language": "typescript"
}
],
"debuggers": [
{
"type": "decentraland-sdk7",
"languages": [
"typescript"
],
"label": "Decentraland",
"initialConfigurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug",
"url": "${command:decentraland-sdk7.commands.getDebugURL}",
"webRoot": "${workspaceFolder}/src"
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run build",
"lint": "eslint . --ext .ts,.tsx",
"deploy": "vsce publish",
"test": "jest",
"test:coverage": "jest --coverage",
"build": "node scripts/build.js",
"build-debug": "node scripts/build.js --debug"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.2",
"@types/express": "^4.17.14",
"@types/gunzip-maybe": "^1.4.0",
"@types/is-running": "^2.1.0",
"@types/node": "^16.11.7",
"@types/node-fetch": "^2.6.2",
"@types/npm": "^7.19.0",
"@types/rimraf": "^3.0.2",
"@types/tar-fs": "^2.0.1",
"@types/vscode": "^1.65.0",
"eslint": "^8.13.0",
"prettier": "^2.7.1",
"typescript": "^4.8.4",
"vsce": "^2.13.0"
},
"prettier": {
"printWidth": 80,
"singleQuote": true,
"semi": false
},
"dependencies": {
"@dcl/schemas": "^5.18.1",
"@dcl/sdk": "7.5.5",
"@dcl/wearable-preview": "^1.14.0",
"@sentry/node": "^7.64.0",
"@types/analytics-node": "^3.1.9",
"@types/cmd-shim": "^5.0.0",
"@types/jest": "^29.2.3",
"@types/semver": "^7.3.13",
"@types/unzip-stream": "^0.3.1",
"analytics-node": "^6.2.0",
"chokidar": "^3.5.3",
"cmd-shim": "^6.0.0",
"cross-spawn": "^7.0.3",
"decentraland": "^3.15.0",
"decentraland-ecs": "^6.11.11",
"dotenv": "^16.0.3",
"estrella": "^1.4.1",
"express": "^4.18.2",
"fp-future": "^1.0.1",
"gunzip-maybe": "^1.4.2",
"is-running": "^2.1.0",
"jest": "^29.3.1",
"mitt": "^3.0.0",
"node-fetch": "^2.6.7",
"node-fetch-progress": "^1.0.2",
"npm": "^8.19.2",
"open": "^8.4.0",
"rimraf": "^3.0.2",
"semver": "^7.3.8",
"tar-fs": "^2.1.1",
"tree-kill": "^1.2.2",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"unzip-stream": "^0.3.1",
"uuidv4": "^6.2.13"
}
}