-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
372 lines (372 loc) · 12.2 KB
/
package.json
File metadata and controls
372 lines (372 loc) · 12.2 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
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
{
"name": "craftengine-vsc",
"displayName": "craftengine-vsc",
"publisher": "craftengine",
"description": "",
"version": "0.0.4",
"packageManager": "pnpm@10.30.0",
"repository": {
"type": "git",
"url": "https://github.com/INSide-734/craftengine-vsc.git"
},
"homepage": "https://github.com/INSide-734/craftengine-vsc#readme",
"bugs": {
"url": "https://github.com/INSide-734/craftengine-vsc/issues"
},
"keywords": [
"craftengine",
"yaml",
"template",
"vscode",
"extension"
],
"engines": {
"vscode": "^1.103.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:yaml",
"workspaceContains:**/*.yml",
"workspaceContains:**/*.yaml"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "CraftEngine Helper",
"properties": {
"craftengine.files.exclude": {
"type": "string",
"default": "**/node_modules/**",
"description": "A glob pattern of files to exclude from template scanning."
},
"craftengine.validation.level": {
"type": "string",
"enum": [
"strict",
"loose",
"off"
],
"default": "loose",
"description": "Schema validation level: strict (no additional properties), loose (allow additional properties), off (no validation)"
},
"craftengine.validation.templateExpansion": {
"type": "boolean",
"default": true,
"description": "Enable template expansion before schema validation. When enabled, templates are expanded to validate the complete configuration, which prevents false positives for required fields defined in templates."
},
"craftengine.schema.deployToWorkspace": {
"type": "boolean",
"default": true,
"description": "Deploy schema files to workspace .craftengine/schemas/ folder for customization"
},
"craftengine.schema.autoUpdateOnVersionChange": {
"type": "boolean",
"default": true,
"description": "Automatically update workspace schema files when extension version changes"
},
"craftengine.schema.hotReload": {
"type": "boolean",
"default": true,
"description": "Enable hot reload when workspace schema files are modified"
},
"craftengine.schema.customCompletion.enabled": {
"type": "boolean",
"default": true,
"description": "Enable schema-driven custom completion (x-completion-provider support)"
},
"craftengine.schema.customCompletion.debug": {
"type": "boolean",
"default": false,
"description": "Show debug logs for schema-driven completion"
},
"craftengine.schema.customCompletion.fallback": {
"type": "string",
"enum": [
"default",
"none",
"schema"
],
"default": "default",
"description": "Fallback behavior when schema is not available: default (use default strategies), none (no completion), schema (only schema-based)"
},
"craftengine.completion.schemaKeys.maxEnumDisplay": {
"type": "number",
"default": 20,
"minimum": 1,
"maximum": 100,
"description": "Maximum number of enum values to display in completion documentation (to avoid overly long documentation)"
},
"craftengine.templates.autoCompletion": {
"type": "boolean",
"default": true,
"description": "Enable automatic template completion"
},
"craftengine.templates.paths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"templates/**/*.yml",
"templates/**/*.yaml"
],
"description": "Glob patterns for template files"
},
"craftengine.diagnostics.enabled": {
"type": "boolean",
"default": true,
"description": "Enable template validation diagnostics"
},
"craftengine.diagnostics.schemaValidation": {
"type": "boolean",
"default": true,
"description": "Enable schema-based YAML validation and diagnostics"
},
"craftengine.performance.monitoring": {
"type": "boolean",
"default": false,
"description": "Enable performance monitoring (development only)"
},
"craftengine.logging.level": {
"type": "string",
"enum": [
"DEBUG",
"INFO",
"WARN",
"ERROR",
"FATAL"
],
"default": "INFO",
"description": "Log level for the extension"
},
"craftengine.logging.debugMode": {
"type": "boolean",
"default": false,
"description": "Enable debug mode with enhanced logging (shows detailed logs in debug console)"
},
"craftengine.logging.useDebugConsole": {
"type": "boolean",
"default": false,
"description": "Output logs to VSCode debug console instead of standard console"
},
"craftengine.logging.debugConsole.useColors": {
"type": "boolean",
"default": true,
"description": "Use ANSI colors in debug console logs"
},
"craftengine.logging.debugConsole.showTimestamp": {
"type": "boolean",
"default": true,
"description": "Show timestamp in debug console logs"
},
"craftengine.logging.debugConsole.showStackTrace": {
"type": "boolean",
"default": true,
"description": "Show stack traces for errors in debug console"
},
"craftengine.logging.fileEnabled": {
"type": "boolean",
"default": false,
"description": "Enable logging to file for troubleshooting"
},
"craftengine.logging.filePath": {
"type": "string",
"default": "",
"description": "Custom log file path (leave empty to use extension storage directory)"
},
"craftengine.logging.maxFileSize": {
"type": "number",
"default": 10485760,
"description": "Maximum log file size in bytes before rotation (default: 10MB)"
},
"craftengine.logging.maxBackupCount": {
"type": "number",
"default": 5,
"minimum": 0,
"maximum": 50,
"description": "Maximum number of rotated log backup files to keep"
},
"craftengine.preview.resourcePacks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Paths to Minecraft resource packs for model preview (absolute or relative to workspace)"
},
"craftengine.preview.useInternalResources": {
"type": "boolean",
"default": true,
"description": "Use built-in Minecraft resources as fallback for model preview"
},
"craftengine.preview.renderSize": {
"type": "number",
"default": 256,
"minimum": 64,
"maximum": 1024,
"description": "Preview image size in pixels"
}
}
},
"languages": [
{
"id": "yaml",
"aliases": [
"YAML",
"yaml"
],
"extensions": [
".yml",
".yaml"
]
}
],
"completionFilters": {
"yaml": {
"template:": false
}
},
"commands": [
{
"command": "craftengine.insertTemplateSnippet",
"title": "Insert CraftEngine Template Snippet"
},
{
"command": "craftengine.rebuildCache",
"title": "Rebuild Template Cache"
},
{
"command": "craftengine.debugCache",
"title": "Debug Template Cache"
},
{
"command": "craftengine.checkYamlExtension",
"title": "Check Red Hat YAML Extension Status"
},
{
"command": "craftengine.getStatistics",
"title": "CraftEngine: Get Extension Statistics"
},
{
"command": "craftengine.showStatistics",
"title": "CraftEngine: Show Extension Statistics"
},
{
"command": "craftengine.reloadMinecraftItems",
"title": "CraftEngine: Reload Minecraft Builtin Items"
},
{
"command": "craftengine.schema.deploy",
"title": "CraftEngine: Deploy Schema to Workspace"
},
{
"command": "craftengine.schema.reset",
"title": "CraftEngine: Reset Workspace Schema (Restore Defaults)"
},
{
"command": "craftengine.schema.reload",
"title": "CraftEngine: Reload Schema from Workspace"
},
{
"command": "craftengine.previewItemModel",
"title": "CraftEngine: Preview Item Model"
}
],
"menus": {
"editor/context": [
{
"command": "craftengine.previewItemModel",
"when": "editorLangId == yaml && craftengine.isItemIdAtCursor",
"group": "craftengine@1"
}
]
}
},
"scripts": {
"vscode:prepublish": "pnpm run clean && node esbuild.mjs --production",
"clean": "rimraf out",
"compile": "pnpm run clean && node esbuild.mjs",
"compile:watch": "node esbuild.mjs --watch",
"watch": "pnpm run clean && node esbuild.mjs --watch",
"pretest": "pnpm run clean && pnpm run compile && pnpm run lint",
"lint": "eslint src --fix",
"lint:check": "eslint src",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:unit": "vitest run --include 'src/test/unit/**'",
"test:integration": "vitest run --include 'src/test/integration/**'",
"test:vscode": "pnpm run compile && cross-env NODE_ENV=test vscode-test",
"test:e2e": "pnpm run compile && cross-env NODE_ENV=test vscode-test",
"test:all": "pnpm run test && pnpm run test:e2e",
"test:bench": "vitest bench",
"package": "pnpm exec vsce package --no-dependencies",
"package:pre-release": "pnpm exec vsce package --pre-release --no-dependencies",
"release:notes": "node scripts/generate-release-notes.js",
"dev": "pnpm run clean && node esbuild.mjs --watch"
},
"devDependencies": {
"@img/sharp-darwin-arm64": "^0.34.5",
"@img/sharp-darwin-x64": "^0.34.5",
"@img/sharp-linux-arm64": "^0.34.5",
"@img/sharp-linux-x64": "^0.34.5",
"@img/sharp-win32-ia32": "^0.34.5",
"@img/sharp-win32-x64": "^0.34.5",
"@types/adm-zip": "^0.5.7",
"@types/glob": "^8.1.0",
"@types/node": "22.x",
"@types/vscode": "^1.103.0",
"@types/yaml": "^1.9.6",
"@typescript-eslint/eslint-plugin": "^8.39.0",
"@typescript-eslint/parser": "^8.39.0",
"@vitest/coverage-v8": "^4.0.16",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"cross-env": "^10.0.0",
"esbuild": "^0.27.3",
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^9.32.0",
"eslint-config-prettier": "^10.1.8",
"glob": "^13.0.6",
"prettier": "^3.8.1",
"rimraf": "^6.0.1",
"typescript": "^5.9.2",
"vitest": "^4.0.16"
},
"dependencies": {
"@types/json-schema": "^7.0.15",
"adm-zip": "^0.5.16",
"ajv": "^8.18.0",
"sharp": "^0.34.5",
"yaml": "^2.8.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"sharp"
],
"overrides": {
"@isaacs/brace-expansion@<=5.0.0": ">=5.0.1",
"diff@>=6.0.0 <8.0.3": ">=8.0.3",
"ajv@>=8.0.0 <8.18.0": ">=8.18.0",
"minimatch@<3.1.4": "3.1.5",
"minimatch@>=9.0.0 <9.0.7": ">=9.0.7",
"minimatch@>=10.0.0 <10.2.3": "10.2.5",
"rollup@>=4.0.0 <4.59.0": ">=4.59.0",
"serialize-javascript@<7.0.5": ">=7.0.5",
"flatted@<3.4.2": ">=3.4.2",
"undici@>=7.0.0 <7.24.0": ">=7.24.0",
"picomatch@<2.3.2": ">=2.3.2",
"picomatch@>=4.0.0 <4.0.4": "4.0.4",
"ajv@<6.14.0": ">=6.14.0",
"brace-expansion@<1.1.13": ">=1.1.13",
"brace-expansion@>=2.0.0 <2.0.3": ">=2.0.3",
"brace-expansion@>=4.0.0 <5.0.5": ">=5.0.5"
}
}
}