-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
402 lines (402 loc) · 9.88 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
{
"name": "s4tk-vscode",
"version": "0.2.4",
"displayName": "Sims 4 Toolkit",
"description": "Sims 4 Toolkit support for VS Code.",
"icon": "media/assets/s4tk-icon.png",
"private": true,
"license": "MIT",
"author": "frankkulak",
"publisher": "sims4toolkit",
"repository": {
"type": "git",
"url": "https://github.com/sims4toolkit/s4tk-vscode"
},
"homepage": "https://vscode.sims4toolkit.com/",
"bugs": {
"url": "https://github.com/sims4toolkit/s4tk-vscode/issues"
},
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
"watch": "tsc -w -p ./"
},
"dependencies": {
"@s4tk/hashing": "^0.2.1",
"@s4tk/models": "^0.6.14",
"@s4tk/xml-dom": "^0.2.6",
"glob": "^10.2.2",
"jsonschema": "^1.4.1",
"jszip": "^3.10.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/uuid": "^9.0.1",
"@types/vscode": "^1.73.0",
"tsc-alias": "^1.8.4",
"typescript": "^5.0.2"
},
"engines": {
"vscode": "^1.76.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/s4tk.config.json",
"workspaceContains:**/*.stbl.json"
],
"contributes": {
"commands": [
{
"command": "s4tk.hashing.text",
"title": "Hash text with FNV (custom bits)",
"category": "FNV Hashing"
},
{
"command": "s4tk.hashing.text32",
"title": "Hash text with FNV32",
"category": "FNV Hashing"
},
{
"command": "s4tk.hashing.text64",
"title": "Hash text with FNV64",
"category": "FNV Hashing"
},
{
"command": "s4tk.hashing.random",
"title": "Generate random FNV hash (custom bits)",
"category": "FNV Hashing"
},
{
"command": "s4tk.hashing.random32",
"title": "Generate random FNV32 hash",
"category": "FNV Hashing"
},
{
"command": "s4tk.hashing.random64",
"title": "Generate random FNV64 hash",
"category": "FNV Hashing"
},
{
"command": "s4tk.tuning.copyAsXml",
"title": "Copy as XML Reference",
"category": "TS4 Tuning",
"enablement": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/"
},
{
"command": "s4tk.tuning.cloneNewName",
"title": "Clone With New Name",
"category": "TS4 Tuning",
"enablement": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/"
},
{
"command": "s4tk.tuning.renameTuning",
"title": "Rename / Rehash Tuning File",
"category": "TS4 Tuning",
"enablement": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/"
},
{
"command": "s4tk.ts4Files.createStblBinary",
"title": "Create String Table (Binary)",
"category": "TS4 Files"
},
{
"command": "s4tk.ts4Files.createStblJson",
"title": "Create String Table (JSON)",
"category": "TS4 Files"
},
{
"command": "s4tk.workspace.reloadConfig",
"title": "Reload S4TK Config",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.createConfig",
"title": "Create S4TK Config",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.createWorkspace",
"title": "Create Sample S4TK Project",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.setDefaultStbl",
"title": "Set STBL as Default",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.createStblFragment",
"title": "Create Fragment for STBL",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.addNewString",
"title": "Add New String",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.build",
"title": "Build S4TK Project",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.buildDryRun",
"title": "Build S4TK Project (Dry Run)",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.buildRelease",
"title": "Build S4TK Project (Release)",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.folderToProject",
"title": "Convert Folder to S4TK Project",
"category": "S4TK Workspace"
},
{
"command": "s4tk.workspace.refreshIndex",
"title": "Refresh Project Index",
"category": "S4TK Workspace"
}
],
"configuration": {
"title": "Sims 4 Toolkit",
"properties": {
"s4tk.showCopyConfirmMessage": {
"type": "boolean",
"default": true,
"description": "Whether a confirmation message should appear when text is copied to clipboard."
},
"s4tk.showConfigLoadedMessage": {
"type": "boolean",
"default": true,
"description": "Whether a confirmation message should appear when the config is loaded."
},
"s4tk.showConfigUnloadedMessage": {
"type": "boolean",
"default": true,
"description": "Whether a warning message should appear when the config is unloaded."
},
"s4tk.newStringsToStartOfStringTable": {
"type": "boolean",
"default": true,
"description": "Whether new strings should be added to the start of STBLs or to the end."
},
"s4tk.defaultStringTableJsonType": {
"type": "string",
"description": "Which kind of STBL JSON should be generated by commands.",
"enum": [
"array",
"object"
],
"default": "object"
},
"s4tk.defaultStringTableLocale": {
"type": "string",
"description": "Default locale to use for new string tables.",
"enum": [
"English",
"ChineseSimplified",
"ChineseTraditional",
"Czech",
"Danish",
"Dutch",
"Finnish",
"French",
"German",
"Italian",
"Japanese",
"Korean",
"Norwegian",
"Polish",
"Portuguese",
"Russian",
"Spanish",
"Swedish"
],
"default": "English"
}
}
},
"customEditors": [
{
"viewType": "s4tk.editor.stblBinary",
"priority": "default",
"displayName": "String Table",
"selector": [
{
"filenamePattern": "*.stbl"
},
{
"filenamePattern": "220557DA*.binary"
}
]
},
{
"viewType": "s4tk.editor.package",
"priority": "default",
"displayName": "TS4 Package",
"selector": [
{
"filenamePattern": "*.package"
}
]
}
],
"jsonValidation": [
{
"fileMatch": "*.stbl.json",
"url": "./schemas/stbl.schema.json"
},
{
"fileMatch": "s4tk.config.json",
"url": "./schemas/s4tk-config.schema.json"
},
{
"fileMatch": "BuildSummary.json",
"url": "./schemas/build-summary.schema.json"
}
],
"languages": [
{
"id": "json",
"aliases": [
"STBL JSON"
],
"filenamePatterns": [
"*.stbl.json"
]
},
{
"id": "json",
"aliases": [
"S4TK Config"
],
"filenamePatterns": [
"s4tk.config.json"
]
}
],
"menus": {
"explorer/context": [
{
"when": "explorerResourceIsFolder && !s4tk.workspace.active",
"command": "s4tk.workspace.createConfig",
"group": "S4TK"
},
{
"when": "explorerResourceIsFolder",
"command": "s4tk.ts4Files.createStblJson",
"group": "S4TK"
},
{
"when": "resourceFilename === 's4tk.config.json'",
"command": "s4tk.workspace.build",
"group": "S4TK"
},
{
"when": "resourceFilename === 's4tk.config.json'",
"command": "s4tk.workspace.buildRelease",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.copyAsXml",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.cloneNewName",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.renameTuning",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl(\\.json)?$/",
"command": "s4tk.workspace.setDefaultStbl",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /220557DA.[0-9A-Fa-f]{8}.[0-9A-Fa-f]{16}\\.binary$/",
"command": "s4tk.workspace.setDefaultStbl",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl\\.json$/",
"command": "s4tk.workspace.createStblFragment",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl(\\.json)?$/",
"command": "s4tk.workspace.addNewString",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /220557DA.[0-9A-Fa-f]{8}.[0-9A-Fa-f]{16}\\.binary$/",
"command": "s4tk.workspace.addNewString",
"group": "S4TK"
}
],
"editor/title/context": [
{
"when": "resourceFilename === 's4tk.config.json'",
"command": "s4tk.workspace.build",
"group": "S4TK"
},
{
"when": "resourceFilename === 's4tk.config.json'",
"command": "s4tk.workspace.buildRelease",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.copyAsXml",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.cloneNewName",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /^((?!\\.SimData).)*\\.xml$/",
"command": "s4tk.tuning.renameTuning",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl(\\.json)?$/",
"command": "s4tk.workspace.setDefaultStbl",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /220557DA.[0-9A-Fa-f]{8}.[0-9A-Fa-f]{16}\\.binary$/",
"command": "s4tk.workspace.setDefaultStbl",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl\\.json$/",
"command": "s4tk.workspace.createStblFragment",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /\\.stbl(\\.json)?$/",
"command": "s4tk.workspace.addNewString",
"group": "S4TK"
},
{
"when": "resourceFilename =~ /220557DA.[0-9A-Fa-f]{8}.[0-9A-Fa-f]{16}\\.binary$/",
"command": "s4tk.workspace.addNewString",
"group": "S4TK"
}
]
}
}
}