@utoo/pack 0.0.1-alpha.1 → 0.0.1-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/binding.d.ts +153 -100
- package/cjs/build.d.ts +2 -0
- package/cjs/build.js +53 -0
- package/cjs/dev.d.ts +42 -0
- package/cjs/dev.js +355 -0
- package/cjs/hmr.d.ts +80 -0
- package/cjs/hmr.js +285 -0
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +5 -73
- package/cjs/mkcert.d.ts +7 -0
- package/cjs/mkcert.js +183 -0
- package/cjs/project.d.ts +3 -3
- package/cjs/project.js +4 -11
- package/cjs/types.d.ts +16 -2
- package/cjs/util.d.ts +12 -1
- package/cjs/util.js +102 -1
- package/config_schema.json +710 -0
- package/esm/binding.d.ts +153 -100
- package/esm/build.d.ts +2 -0
- package/esm/build.js +50 -0
- package/esm/dev.d.ts +42 -0
- package/esm/dev.js +339 -0
- package/esm/hmr.d.ts +80 -0
- package/esm/hmr.js +278 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -69
- package/esm/mkcert.d.ts +7 -0
- package/esm/mkcert.js +176 -0
- package/esm/project.d.ts +3 -3
- package/esm/project.js +2 -9
- package/esm/types.d.ts +16 -2
- package/esm/util.d.ts +12 -1
- package/esm/util.js +98 -1
- package/package.json +38 -23
- package/bin/cli.js +0 -9
- package/global.d.ts +0 -10
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "ProjectOptions",
|
|
4
|
+
"description": "Top-level project options configuration This represents the root structure of project_options.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": [
|
|
7
|
+
"config"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"config": {
|
|
11
|
+
"description": "Main configuration object",
|
|
12
|
+
"allOf": [
|
|
13
|
+
{
|
|
14
|
+
"$ref": "#/definitions/SchemaConfig"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"projectPath": {
|
|
19
|
+
"description": "Project path relative to root",
|
|
20
|
+
"type": [
|
|
21
|
+
"string",
|
|
22
|
+
"null"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"rootPath": {
|
|
26
|
+
"description": "Root path of the project",
|
|
27
|
+
"type": [
|
|
28
|
+
"string",
|
|
29
|
+
"null"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"definitions": {
|
|
34
|
+
"SchemaConfig": {
|
|
35
|
+
"description": "Main configuration structure that mirrors pack_core::config::Config All fields are derived from the original Config structure in pack-core",
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"cacheHandler": {
|
|
39
|
+
"description": "Cache handler configuration",
|
|
40
|
+
"type": [
|
|
41
|
+
"string",
|
|
42
|
+
"null"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"define": {
|
|
46
|
+
"description": "Define variables for build-time replacement",
|
|
47
|
+
"type": [
|
|
48
|
+
"object",
|
|
49
|
+
"null"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": true
|
|
52
|
+
},
|
|
53
|
+
"entry": {
|
|
54
|
+
"description": "Entry points for the build",
|
|
55
|
+
"type": [
|
|
56
|
+
"array",
|
|
57
|
+
"null"
|
|
58
|
+
],
|
|
59
|
+
"items": {
|
|
60
|
+
"$ref": "#/definitions/SchemaEntryOptions"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"experimental": {
|
|
64
|
+
"description": "Experimental features",
|
|
65
|
+
"anyOf": [
|
|
66
|
+
{
|
|
67
|
+
"$ref": "#/definitions/SchemaExperimentalConfig"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "null"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"externals": {
|
|
75
|
+
"description": "External dependencies configuration",
|
|
76
|
+
"type": [
|
|
77
|
+
"object",
|
|
78
|
+
"null"
|
|
79
|
+
],
|
|
80
|
+
"additionalProperties": {
|
|
81
|
+
"$ref": "#/definitions/SchemaExternalConfig"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"images": {
|
|
85
|
+
"description": "Image processing configuration",
|
|
86
|
+
"anyOf": [
|
|
87
|
+
{
|
|
88
|
+
"$ref": "#/definitions/SchemaImageConfig"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "null"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"mode": {
|
|
96
|
+
"description": "Build mode",
|
|
97
|
+
"type": [
|
|
98
|
+
"string",
|
|
99
|
+
"null"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"module": {
|
|
103
|
+
"description": "Module configuration",
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"$ref": "#/definitions/SchemaModuleConfig"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "null"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"optimization": {
|
|
114
|
+
"description": "Build optimization settings",
|
|
115
|
+
"anyOf": [
|
|
116
|
+
{
|
|
117
|
+
"$ref": "#/definitions/SchemaOptimizationConfig"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "null"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"output": {
|
|
125
|
+
"description": "Output configuration",
|
|
126
|
+
"anyOf": [
|
|
127
|
+
{
|
|
128
|
+
"$ref": "#/definitions/SchemaOutputConfig"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"persistentCaching": {
|
|
136
|
+
"description": "Enable persistent caching",
|
|
137
|
+
"type": [
|
|
138
|
+
"boolean",
|
|
139
|
+
"null"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"resolve": {
|
|
143
|
+
"description": "Resolve configuration",
|
|
144
|
+
"anyOf": [
|
|
145
|
+
{
|
|
146
|
+
"$ref": "#/definitions/SchemaResolveConfig"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "null"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"sourceMaps": {
|
|
154
|
+
"description": "Enable source maps",
|
|
155
|
+
"type": [
|
|
156
|
+
"boolean",
|
|
157
|
+
"null"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"styles": {
|
|
161
|
+
"description": "Style processing configuration",
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"$ref": "#/definitions/SchemaStyleConfig"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"target": {
|
|
172
|
+
"description": "Target environment",
|
|
173
|
+
"type": [
|
|
174
|
+
"string",
|
|
175
|
+
"null"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"SchemaEntryOptions": {
|
|
181
|
+
"description": "Entry point configuration",
|
|
182
|
+
"type": "object",
|
|
183
|
+
"required": [
|
|
184
|
+
"import"
|
|
185
|
+
],
|
|
186
|
+
"properties": {
|
|
187
|
+
"import": {
|
|
188
|
+
"description": "Import path for the entry point",
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"library": {
|
|
192
|
+
"description": "Library configuration for this entry",
|
|
193
|
+
"anyOf": [
|
|
194
|
+
{
|
|
195
|
+
"$ref": "#/definitions/SchemaLibraryOptions"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "null"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"name": {
|
|
203
|
+
"description": "Entry name (optional)",
|
|
204
|
+
"type": [
|
|
205
|
+
"string",
|
|
206
|
+
"null"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"SchemaExperimentalConfig": {
|
|
212
|
+
"description": "Experimental features configuration",
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"cacheHandlers": {
|
|
216
|
+
"description": "Cache handlers",
|
|
217
|
+
"type": [
|
|
218
|
+
"object",
|
|
219
|
+
"null"
|
|
220
|
+
],
|
|
221
|
+
"additionalProperties": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"dynamicIO": {
|
|
226
|
+
"description": "Dynamic IO",
|
|
227
|
+
"type": [
|
|
228
|
+
"boolean",
|
|
229
|
+
"null"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"esmExternals": {
|
|
233
|
+
"description": "ESM externals"
|
|
234
|
+
},
|
|
235
|
+
"mdxRs": {
|
|
236
|
+
"description": "MDX-RS options"
|
|
237
|
+
},
|
|
238
|
+
"ppr": {
|
|
239
|
+
"description": "Partial prerendering"
|
|
240
|
+
},
|
|
241
|
+
"reactCompiler": {
|
|
242
|
+
"description": "React compiler"
|
|
243
|
+
},
|
|
244
|
+
"serverActions": {
|
|
245
|
+
"description": "Server actions"
|
|
246
|
+
},
|
|
247
|
+
"swcPlugins": {
|
|
248
|
+
"description": "SWC plugins",
|
|
249
|
+
"type": [
|
|
250
|
+
"array",
|
|
251
|
+
"null"
|
|
252
|
+
],
|
|
253
|
+
"items": true
|
|
254
|
+
},
|
|
255
|
+
"taint": {
|
|
256
|
+
"description": "Taint",
|
|
257
|
+
"type": [
|
|
258
|
+
"boolean",
|
|
259
|
+
"null"
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"useCache": {
|
|
263
|
+
"description": "Use cache",
|
|
264
|
+
"type": [
|
|
265
|
+
"boolean",
|
|
266
|
+
"null"
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"viewTransition": {
|
|
270
|
+
"description": "View transition",
|
|
271
|
+
"type": [
|
|
272
|
+
"boolean",
|
|
273
|
+
"null"
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"SchemaExternalAdvanced": {
|
|
279
|
+
"description": "Advanced external configuration",
|
|
280
|
+
"type": "object",
|
|
281
|
+
"required": [
|
|
282
|
+
"root"
|
|
283
|
+
],
|
|
284
|
+
"properties": {
|
|
285
|
+
"root": {
|
|
286
|
+
"description": "Root name for the external",
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"script": {
|
|
290
|
+
"description": "Script URL for script type externals",
|
|
291
|
+
"type": [
|
|
292
|
+
"string",
|
|
293
|
+
"null"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"subPath": {
|
|
297
|
+
"description": "Sub-path configuration for complex externals",
|
|
298
|
+
"anyOf": [
|
|
299
|
+
{
|
|
300
|
+
"$ref": "#/definitions/SchemaExternalSubPath"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "null"
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"type": {
|
|
308
|
+
"description": "Type of external",
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"$ref": "#/definitions/SchemaExternalType"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "null"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"SchemaExternalConfig": {
|
|
321
|
+
"description": "External dependency configuration",
|
|
322
|
+
"anyOf": [
|
|
323
|
+
{
|
|
324
|
+
"description": "Simple string external (e.g., \\\"react\\\" -> \\\"React\\\")",
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"description": "Complex external configuration",
|
|
329
|
+
"allOf": [
|
|
330
|
+
{
|
|
331
|
+
"$ref": "#/definitions/SchemaExternalAdvanced"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"SchemaExternalSubPath": {
|
|
338
|
+
"description": "Sub-path configuration for externals",
|
|
339
|
+
"type": "object",
|
|
340
|
+
"properties": {
|
|
341
|
+
"exclude": {
|
|
342
|
+
"description": "Paths to exclude",
|
|
343
|
+
"type": [
|
|
344
|
+
"array",
|
|
345
|
+
"null"
|
|
346
|
+
],
|
|
347
|
+
"items": {
|
|
348
|
+
"type": "string"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"rules": {
|
|
352
|
+
"description": "Transformation rules",
|
|
353
|
+
"type": [
|
|
354
|
+
"array",
|
|
355
|
+
"null"
|
|
356
|
+
],
|
|
357
|
+
"items": {
|
|
358
|
+
"$ref": "#/definitions/SchemaExternalSubPathRule"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"SchemaExternalSubPathRule": {
|
|
364
|
+
"description": "Sub-path transformation rule",
|
|
365
|
+
"type": "object",
|
|
366
|
+
"required": [
|
|
367
|
+
"regex",
|
|
368
|
+
"target"
|
|
369
|
+
],
|
|
370
|
+
"properties": {
|
|
371
|
+
"regex": {
|
|
372
|
+
"description": "Regular expression to match",
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"target": {
|
|
376
|
+
"description": "Target replacement pattern (supports $empty and template strings)",
|
|
377
|
+
"type": "string"
|
|
378
|
+
},
|
|
379
|
+
"targetConverter": {
|
|
380
|
+
"description": "Target case converter",
|
|
381
|
+
"anyOf": [
|
|
382
|
+
{
|
|
383
|
+
"$ref": "#/definitions/SchemaExternalTargetConverter"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "null"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"SchemaExternalTargetConverter": {
|
|
393
|
+
"description": "Target case converter",
|
|
394
|
+
"type": "string",
|
|
395
|
+
"enum": [
|
|
396
|
+
"PascalCase",
|
|
397
|
+
"CamelCase",
|
|
398
|
+
"KebabCase",
|
|
399
|
+
"SnakeCase"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
"SchemaExternalType": {
|
|
403
|
+
"description": "External type",
|
|
404
|
+
"type": "string",
|
|
405
|
+
"enum": [
|
|
406
|
+
"script",
|
|
407
|
+
"commonjs",
|
|
408
|
+
"esm",
|
|
409
|
+
"global"
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"SchemaImageConfig": {
|
|
413
|
+
"description": "Image configuration",
|
|
414
|
+
"type": "object",
|
|
415
|
+
"properties": {
|
|
416
|
+
"inlineLimit": {
|
|
417
|
+
"description": "Inline limit for images in bytes",
|
|
418
|
+
"type": [
|
|
419
|
+
"integer",
|
|
420
|
+
"null"
|
|
421
|
+
],
|
|
422
|
+
"format": "uint64",
|
|
423
|
+
"minimum": 0.0
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"SchemaLibraryOptions": {
|
|
428
|
+
"description": "Library output configuration",
|
|
429
|
+
"type": "object",
|
|
430
|
+
"properties": {
|
|
431
|
+
"export": {
|
|
432
|
+
"description": "Export configuration",
|
|
433
|
+
"type": [
|
|
434
|
+
"array",
|
|
435
|
+
"null"
|
|
436
|
+
],
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"name": {
|
|
442
|
+
"description": "Library name (optional)",
|
|
443
|
+
"type": [
|
|
444
|
+
"string",
|
|
445
|
+
"null"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"SchemaModuleConfig": {
|
|
451
|
+
"description": "Module configuration",
|
|
452
|
+
"type": "object",
|
|
453
|
+
"properties": {
|
|
454
|
+
"rules": {
|
|
455
|
+
"description": "Module rules configuration",
|
|
456
|
+
"type": [
|
|
457
|
+
"object",
|
|
458
|
+
"null"
|
|
459
|
+
],
|
|
460
|
+
"additionalProperties": true
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"SchemaModuleIds": {
|
|
465
|
+
"description": "Module ID generation strategy",
|
|
466
|
+
"type": "string",
|
|
467
|
+
"enum": [
|
|
468
|
+
"named",
|
|
469
|
+
"deterministic"
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
"SchemaOptimizationConfig": {
|
|
473
|
+
"description": "Optimization configuration",
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"minify": {
|
|
477
|
+
"description": "Whether to minify the output",
|
|
478
|
+
"type": [
|
|
479
|
+
"boolean",
|
|
480
|
+
"null"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"modularizeImports": {
|
|
484
|
+
"description": "Modularize imports configuration",
|
|
485
|
+
"type": [
|
|
486
|
+
"object",
|
|
487
|
+
"null"
|
|
488
|
+
],
|
|
489
|
+
"additionalProperties": true
|
|
490
|
+
},
|
|
491
|
+
"moduleIds": {
|
|
492
|
+
"description": "Module ID generation strategy",
|
|
493
|
+
"anyOf": [
|
|
494
|
+
{
|
|
495
|
+
"$ref": "#/definitions/SchemaModuleIds"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"type": "null"
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
"noMangling": {
|
|
503
|
+
"description": "Whether to disable name mangling",
|
|
504
|
+
"type": [
|
|
505
|
+
"boolean",
|
|
506
|
+
"null"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
"packageImports": {
|
|
510
|
+
"description": "Packages to optimize imports for",
|
|
511
|
+
"type": [
|
|
512
|
+
"array",
|
|
513
|
+
"null"
|
|
514
|
+
],
|
|
515
|
+
"items": {
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"removeConsole": {
|
|
520
|
+
"description": "Console removal configuration",
|
|
521
|
+
"anyOf": [
|
|
522
|
+
{
|
|
523
|
+
"$ref": "#/definitions/SchemaRemoveConsoleConfig"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"type": "null"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"splitChunks": {
|
|
531
|
+
"description": "Split chunks configuration",
|
|
532
|
+
"type": [
|
|
533
|
+
"object",
|
|
534
|
+
"null"
|
|
535
|
+
],
|
|
536
|
+
"additionalProperties": {
|
|
537
|
+
"$ref": "#/definitions/SchemaSplitChunkConfig"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"transpilePackages": {
|
|
541
|
+
"description": "Packages to transpile",
|
|
542
|
+
"type": [
|
|
543
|
+
"array",
|
|
544
|
+
"null"
|
|
545
|
+
],
|
|
546
|
+
"items": {
|
|
547
|
+
"type": "string"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"treeShaking": {
|
|
551
|
+
"description": "Whether to enable tree shaking",
|
|
552
|
+
"type": [
|
|
553
|
+
"boolean",
|
|
554
|
+
"null"
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"SchemaOutputConfig": {
|
|
560
|
+
"description": "Output configuration",
|
|
561
|
+
"type": "object",
|
|
562
|
+
"properties": {
|
|
563
|
+
"chunkFilename": {
|
|
564
|
+
"description": "Filename pattern for chunk files",
|
|
565
|
+
"type": [
|
|
566
|
+
"string",
|
|
567
|
+
"null"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"clean": {
|
|
571
|
+
"description": "Whether to clean output directory before build",
|
|
572
|
+
"type": [
|
|
573
|
+
"boolean",
|
|
574
|
+
"null"
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
"filename": {
|
|
578
|
+
"description": "Filename pattern for main files",
|
|
579
|
+
"type": [
|
|
580
|
+
"string",
|
|
581
|
+
"null"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
"path": {
|
|
585
|
+
"description": "Output directory path",
|
|
586
|
+
"type": [
|
|
587
|
+
"string",
|
|
588
|
+
"null"
|
|
589
|
+
]
|
|
590
|
+
},
|
|
591
|
+
"type": {
|
|
592
|
+
"description": "Output type",
|
|
593
|
+
"anyOf": [
|
|
594
|
+
{
|
|
595
|
+
"$ref": "#/definitions/SchemaOutputType"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "null"
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"SchemaOutputType": {
|
|
605
|
+
"description": "Output type",
|
|
606
|
+
"type": "string",
|
|
607
|
+
"enum": [
|
|
608
|
+
"standalone",
|
|
609
|
+
"export"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"SchemaRemoveConsoleConfig": {
|
|
613
|
+
"description": "Console removal configuration",
|
|
614
|
+
"anyOf": [
|
|
615
|
+
{
|
|
616
|
+
"description": "Simple boolean to enable/disable",
|
|
617
|
+
"type": "boolean"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"description": "Advanced configuration",
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"exclude": {
|
|
624
|
+
"description": "Methods to exclude from removal",
|
|
625
|
+
"type": [
|
|
626
|
+
"array",
|
|
627
|
+
"null"
|
|
628
|
+
],
|
|
629
|
+
"items": {
|
|
630
|
+
"type": "string"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
"SchemaResolveConfig": {
|
|
638
|
+
"description": "Resolve configuration",
|
|
639
|
+
"type": "object",
|
|
640
|
+
"properties": {
|
|
641
|
+
"resolveAlias": {
|
|
642
|
+
"description": "Resolve alias mapping",
|
|
643
|
+
"type": [
|
|
644
|
+
"object",
|
|
645
|
+
"null"
|
|
646
|
+
],
|
|
647
|
+
"additionalProperties": true
|
|
648
|
+
},
|
|
649
|
+
"resolveExtensions": {
|
|
650
|
+
"description": "Resolve extensions",
|
|
651
|
+
"type": [
|
|
652
|
+
"array",
|
|
653
|
+
"null"
|
|
654
|
+
],
|
|
655
|
+
"items": {
|
|
656
|
+
"type": "string"
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"SchemaSplitChunkConfig": {
|
|
662
|
+
"description": "Split chunk configuration",
|
|
663
|
+
"type": "object",
|
|
664
|
+
"properties": {
|
|
665
|
+
"maxChunkCountPerGroup": {
|
|
666
|
+
"description": "Maximum chunk count per group",
|
|
667
|
+
"default": 40,
|
|
668
|
+
"type": "integer",
|
|
669
|
+
"format": "uint",
|
|
670
|
+
"minimum": 0.0
|
|
671
|
+
},
|
|
672
|
+
"maxMergeChunkSize": {
|
|
673
|
+
"description": "Maximum merge chunk size",
|
|
674
|
+
"default": 200000,
|
|
675
|
+
"type": "integer",
|
|
676
|
+
"format": "uint",
|
|
677
|
+
"minimum": 0.0
|
|
678
|
+
},
|
|
679
|
+
"minChunkSize": {
|
|
680
|
+
"description": "Minimum chunk size",
|
|
681
|
+
"default": 50000,
|
|
682
|
+
"type": "integer",
|
|
683
|
+
"format": "uint",
|
|
684
|
+
"minimum": 0.0
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"SchemaStyleConfig": {
|
|
689
|
+
"description": "Style configuration",
|
|
690
|
+
"type": "object",
|
|
691
|
+
"properties": {
|
|
692
|
+
"emotion": {
|
|
693
|
+
"description": "Emotion transform configuration"
|
|
694
|
+
},
|
|
695
|
+
"inlineCss": {
|
|
696
|
+
"description": "Inline CSS configuration"
|
|
697
|
+
},
|
|
698
|
+
"less": {
|
|
699
|
+
"description": "Less configuration"
|
|
700
|
+
},
|
|
701
|
+
"sass": {
|
|
702
|
+
"description": "Sass configuration"
|
|
703
|
+
},
|
|
704
|
+
"styledComponents": {
|
|
705
|
+
"description": "Styled components configuration"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|