-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
472 lines (472 loc) · 16.9 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
460
461
462
463
464
465
466
467
468
469
470
471
472
{
"name": "y3-helper",
"displayName": "Y3开发助手",
"description": "",
"publisher": "sumneko",
"version": "1.19.2",
"repository": {
"url": "https://github.com/y3-editor/y3-helper"
},
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:y3/更新日志.md",
"onDebugResolve:y3lua"
],
"main": "./dist/extension.js",
"capabilities": {
"workspaceSymbolProvider": "true",
"documentSymbolProvider": "true"
},
"contributes": {
"views": {
"explorer": [
{
"id": "y3-helper.editorTableView",
"name": "Y3开发助手:物编数据"
}
],
"y3-helper": [
{
"id": "y3-helper.mainMenu",
"name": "Y3开发助手"
},
{
"id": "y3-helper.custom",
"name": "自定义视图"
}
]
},
"menus": {
"view/title": [
{
"command": "y3-helper.editorTableView.refresh",
"when": "view == y3-helper.editorTableView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "y3-helper.openFile",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "navigation"
},
{
"command": "y3-helper.revealInFileExplorer",
"when": "view == y3-helper.editorTableView",
"group": "navigation"
},
{
"command": "y3-helper.openPlugin",
"when": "viewItem == 插件列表",
"group": "navigation"
},
{
"command": "y3-helper.renameEditorTableItem",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "modification"
},
{
"command": "y3-helper.deleteEditorTableItem",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "modification"
},
{
"command": "y3-helper.addNewEditorTableItem",
"when": "view == y3-helper.editorTableView && viewItem == directory",
"group": "modification"
},
{
"command": "y3-helper.copyTableItemKey",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "copy"
},
{
"command": "y3-helper.copyTableItemName",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "copy"
},
{
"command": "y3-helper.copyFromEditorTableItem",
"when": "view == y3-helper.editorTableView && viewItem == json",
"group": "copy"
},
{
"command": "y3-helper.copyUnitAttrKey",
"when": "viewItem == 单位属性",
"group": "copy"
},
{
"command": "y3-helper.copyUnitAttrName",
"when": "viewItem == 单位属性",
"group": "copy"
},
{
"command": "y3-helper.copyPlayerAttrKey",
"when": "viewItem == 玩家属性",
"group": "copy"
},
{
"command": "y3-helper.copyPlayerAttrName",
"when": "viewItem == 玩家属性",
"group": "copy"
},
{
"command": "y3-helper.copyEventID",
"when": "viewItem == 自定义事件",
"group": "copy"
},
{
"command": "y3-helper.copyEventName",
"when": "viewItem == 自定义事件",
"group": "copy"
},
{
"command": "y3-helper.copyUIAnimID",
"when": "viewItem == 时间轴动画",
"group": "copy"
},
{
"command": "y3-helper.copyUIAnimName",
"when": "viewItem == 时间轴动画",
"group": "copy"
},
{
"command": "y3-helper.copyUIName",
"when": "viewItem == 画板 || viewItem == 场景UI || viewItem == 元件",
"group": "copy"
},
{
"command": "y3-helper.copyUIPath",
"when": "viewItem == 画板",
"group": "copy"
},
{
"command": "y3-helper.copyUIUID",
"when": "viewItem == 画板 || viewItem == 场景UI || viewItem == 元件",
"group": "copy"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "y3-helper",
"title": "Y3开发助手",
"icon": "image/logo.png"
}
]
},
"commands": [
{
"command": "y3-helper.initProject",
"title": "初始化开发环境",
"icon": "image/logo.png",
"category": "Y3开发助手"
},
{
"command": "y3-helper.makeLuaDoc",
"title": "生成接口文档",
"category": "Y3开发助手"
},
{
"command": "y3-helper.launchGame",
"title": "启动游戏",
"category": "Y3开发助手"
},
{
"command": "y3-helper.launchGameAndAttach",
"title": "启动游戏并附加调试",
"category": "Y3开发助手"
},
{
"command": "y3-helper.launchEditor",
"title": "在编辑器中打开",
"category": "Y3开发助手"
},
{
"command": "y3-helper.editorTableView.refresh",
"title": "刷新物编数据",
"shortTitle": "刷新",
"category": "Y3开发助手",
"icon": "$(refresh)"
},
{
"command": "y3-helper.addNewEditorTableItem",
"title": "新建对象",
"enablement": "view == y3-helper.editorTableView",
"category": "Y3开发助手"
},
{
"command": "y3-helper.deleteEditorTableItem",
"title": "删除",
"enablement": "view == y3-helper.editorTableView && viewItem == json",
"category": "Y3开发助手"
},
{
"command": "y3-helper.renameEditorTableItem",
"title": "重命名",
"enablement": "view == y3-helper.editorTableView && viewItem == json",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyTableItemKey",
"title": "复制Key",
"enablement": "view == y3-helper.editorTableView && viewItem == json",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyTableItemName",
"title": "复制名称",
"enablement": "view == y3-helper.editorTableView && viewItem == json",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyFromEditorTableItem",
"title": "复制为新的对象",
"enablement": "view == y3-helper.editorTableView && viewItem == json",
"category": "Y3开发助手"
},
{
"command": "y3-helper.openFile",
"title": "打开文件",
"enablement": "view == y3-helper.editorTableView",
"category": "Y3开发助手"
},
{
"command": "y3-helper.revealInFileExplorer",
"title": "在系统文件浏览器中打开",
"enablement": "view == y3-helper.editorTableView",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUnitAttrKey",
"title": "复制key",
"enablement": "viewItem == 单位属性",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUnitAttrName",
"title": "复制名称",
"enablement": "viewItem == 单位属性",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyPlayerAttrKey",
"title": "复制key",
"enablement": "viewItem == 玩家属性",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyPlayerAttrName",
"title": "复制名称",
"enablement": "viewItem == 玩家属性",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyEventID",
"title": "复制ID",
"enablement": "viewItem == 自定义事件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyEventName",
"title": "复制名称",
"enablement": "viewItem == 自定义事件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUIAnimID",
"title": "复制ID",
"enablement": "viewItem == 时间轴动画",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUIAnimName",
"title": "复制名称",
"enablement": "viewItem == 时间轴动画",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUIName",
"title": "复制名称",
"enablement": "viewItem == 画板 || viewItem == 场景UI || viewItem == 元件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUIPath",
"title": "复制路径",
"enablement": "viewItem == 画板",
"category": "Y3开发助手"
},
{
"command": "y3-helper.copyUIUID",
"title": "复制ID",
"enablement": "viewItem == 画板 || viewItem == 场景UI || viewItem == 元件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.networkServer",
"title": "启动网络服务器(用于测试`network`库)",
"category": "Y3开发助手"
},
{
"command": "y3-helper.testTerminal",
"title": "测试游戏控制台",
"category": "Y3开发助手"
},
{
"command": "y3-helper.testExcel",
"title": "测试导表",
"category": "Y3开发助手"
},
{
"command": "y3-helper.initPlugin",
"title": "初始化插件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.updatePlugin",
"title": "更新插件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.runPlugin",
"title": "运行插件",
"category": "Y3开发助手"
},
{
"command": "y3-helper.openPlugin",
"title": "打开插件",
"enablement": "viewItem == 插件列表",
"category": "Y3开发助手"
},
{
"command": "y3-helper.changeMap",
"title": "切换地图",
"category": "Y3开发助手"
},
{
"command": "y3-helper.enableGlobalScript",
"title": "启用全局脚本",
"category": "Y3开发助手"
},
{
"command": "y3-helper.compileECA",
"title": "编译ECA",
"category": "Y3开发助手"
}
],
"configuration": {
"title": "Y3-Helper",
"type": "object",
"properties": {
"Y3-Helper.EditorPath": {
"title": "Y3编辑器路径",
"description": "Y3编辑器的完整路径。如果为空则会从注册表中获取。",
"type": "string",
"default": "",
"ignoreSync": true,
"pattern": "(^.*[\\\\/]Editor.exe$)|(^$)",
"scope": "resource"
},
"Y3-Helper.ShowStatusBarItem": {
"title": "显示状态栏按钮",
"description": "在状态栏中显示“启动”和“附加”按钮",
"type": "boolean",
"default": true,
"scope": "resource"
},
"Y3-Helper.ServerPort": {
"title": "客户端连接端口",
"description": "使用0表示随机端口",
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 65535,
"scope": "resource"
},
"Y3-Helper.ECAOverridePath": {
"title": "(开发)用于ECA转Lua配置导表的工程路径",
"description": "填编辑器工程路径即可,如 `D:/up1`,也可以填到excel所在的目录",
"type": "string",
"default": "",
"ignoreSync": true,
"scope": "resource"
}
}
},
"keybindings": [
{
"command": "y3-helper.launchGameAndAttach",
"key": "shift+f5",
"when": "debuggersAvailable && !inDebugMode"
}
],
"breakpoints": [
{
"language": "lua"
}
],
"debuggers": [
{
"label": "Y3 Lua Debug",
"languages": [
"lua"
],
"type": "y3lua"
}
]
},
"extensionDependencies": [
"sumneko.lua"
],
"icon": "image/logo.png",
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "webpack --mode none",
"watch": "webpack --mode none --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"feasibility_test": "node ./out/test/feasibility.test.js"
},
"dependencies": {
"exceljs": "^4.4.0",
"fast-xml-parser": "^4.3.5",
"fs-extra": "^11.2.0",
"iconv-lite": "^0.6.3",
"is": "^3.3.0",
"jsonc-parser": "^3.3.1",
"jszip": "^3.10.1",
"module-alias": "2.2.3",
"uuid": "^9.0.1",
"winreg": "^1.2.5"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/is": "^0.0.25",
"@types/mocha": "^10.0.3",
"@types/module-alias": "^2.0.4",
"@types/node": "^18.19.18",
"@types/uuid": "^9.0.8",
"@types/vscode": "^1.96.0",
"@types/winreg": "^1.2.34",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vscode/dts": "^0.4.1",
"@vscode/test-electron": "^2.3.6",
"dts-bundle-generator": "^9.5.1",
"eslint": "^8.57.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"ts-loader": "^9.5.1",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
}
}