-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
376 lines (376 loc) · 11.7 KB
/
schema.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "JSON schema for package.json files to be used with the papua build tool.",
"allOf": [{ "$ref": "https://json.schemastore.org/package.json" }],
"properties": {
"papua": {
"description": "Optional configuration for papua.",
"type": "object",
"properties": {
"output": {
"description": "Folder where the bundled assets should be emitted.",
"type": "string"
},
"test": {
"type": "string"
},
"entry": {
"description": "Entry point or points to the source code.",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"additionalProperties": {
"oneOf": [
{ "type": "string" },
{
"type": "array",
"items": { "type": "string" }
}
]
}
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"tsconfig": {
"allOf": [{ "$ref": "https://json.schemastore.org/tsconfig.json" }]
},
"jsconfig": {
"allOf": [{ "$ref": "https://json.schemastore.org/jsconfig.json" }]
},
"publicPath": {
"type": "string"
},
"title": {
"type": "string"
},
"esVersion": {
"type": "string"
},
"sourceMap": {
"description": "Generate source map files in production.",
"type": "boolean",
"default": false
},
"html": {
"type": "object",
"properties": {
"cache": {
"type": "boolean",
"default": true,
"description": "Emit the file only if it was changed."
},
"chunks": {
"oneOf": [
{ "type": "string", "enum": ["all"] },
{ "type": "array", "items": { "type": "string" } }
],
"description": "List all entries which should be injected"
},
"chunksSortMode": {
"oneOf": [{ "type": "string", "enum": ["auto", "manual"] }],
"default": "auto",
"description": "Allows to control how chunks should be sorted before they are included to the html."
},
"excludedChunks": {
"type": "array",
"items": { "type": "string" },
"description": "List all entries which should not be injected"
},
"favicon": {
"oneOf": [{ "type": "boolean", "enum": [false] }, { "type": "string" }],
"description": "Path to the favicon icon"
},
"filename": {
"type": "string",
"default": "index.html",
"description": "The file to write the HTML to."
},
"publicPath": {
"oneOf": [
{ "type": "string", "description": "The public path" },
{
"type": "string",
"enum": ["auto"],
"description": "The public path is set to `auto`"
}
],
"description": "By default the public path is set to `auto`."
},
"hash": {
"type": "boolean",
"description": "If `true` then append a unique `webpack` compilation hash to all included scripts and CSS files. This is useful for cache busting"
},
"inject": {
"oneOf": [
{ "type": "boolean", "enum": [false], "description": "Do not inject assets" },
{
"type": "string",
"enum": ["body", "head"],
"description": "Inject assets into the body or head"
},
{ "type": "boolean", "enum": [true], "description": "Inject all assets" }
],
"description": "Inject all assets into the given `template` or `templateContent`."
},
"scriptLoading": {
"type": "string",
"enum": ["blocking", "defer", "module"],
"default": "defer",
"description": "Set up script loading"
},
"meta": {
"oneOf": [
{ "type": "boolean", "enum": [false], "description": "Do not inject meta tags" },
{
"type": "object",
"additionalProperties": {
"oneOf": [
{ "type": "string" },
{ "type": "boolean" },
{
"type": "object",
"additionalProperties": { "type": "string" }
}
]
},
"description": "Inject meta tags"
}
]
},
"minify": {
"oneOf": [
{ "type": "string", "enum": ["auto"] },
{ "type": "boolean" },
{ "$ref": "#/definitions/MinifyOptions" }
]
},
"showErrors": { "type": "boolean" },
"template": { "type": "string" },
"templateContent": {
"oneOf": [
{ "type": "boolean", "enum": [false] },
{ "type": "string" },
{ "type": "object", "additionalProperties": true },
{ "type": "object", "additionalProperties": true, "async": true }
]
},
"templateCompiler": { "$ref": "#/definitions/TemplateCompiler" },
"templateParameters": {
"oneOf": [
{ "type": "boolean", "enum": [false] },
{ "type": "object", "additionalProperties": true },
{ "type": "object", "additionalProperties": true, "async": true }
]
},
"title": { "type": "string" },
"xhtml": { "type": "boolean" }
}
},
"icon": {
"description": "Path to an icon to inject into any template.",
"type": ["string", "boolean"]
},
"hash": {
"type": "boolean",
"default": true
},
"root": {
"description": "Should absolute import lookups be resolved from the root of the project first.",
"type": "boolean",
"default": true
},
"typescript": {
"type": "boolean"
},
"react": {
"type": "boolean"
},
"gitignore": {
"type": "array",
"items": {
"type": "string"
}
},
"prettierIgnore": {
"type": "array",
"items": {
"type": "string"
}
},
"cypress": {
"description": "Configuration added to default Cypress configuration.",
"type": "object"
},
"injectManifest": {
"description": "Configuration added to inject-manifest-plugin.",
"type": "object",
"properties": {
"file": {
"description": "The filename pointing to the service worker.",
"type": "string"
},
"injectionPoint": {
"description": "The variable in the service worker to replace with the manifest during the build.",
"type": "string"
},
"exclude": {
"description": "List of globs for files that should be excluded from the manifest.",
"type": "array"
},
"removeHash": {
"description": "Removes hash in the emitted filename of the service worker.",
"type": "boolean"
},
"chunkName": {
"description": "The name of the service worker chunk.",
"type": "string"
}
}
},
"serve": {
"description": "Configuration passed to serve-handler package in serve script.",
"type": "object",
"properties": {
"public": {
"type": ["string", "null"]
},
"cleanUrls": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"rewrites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
}
},
"required": ["source", "destination"]
}
},
"redirects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"type": {
"type": "number"
}
},
"required": ["source", "destination", "type"]
}
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"source": {
"type": "string"
},
"headers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": ["key", "value"]
}
}
},
"required": ["source", "headers"]
}
},
"directoryListing": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"unlisted": {
"type": "array",
"items": {
"type": "string"
}
},
"trailingSlash": {
"type": "boolean"
},
"renderSingle": {
"type": "boolean"
},
"symlinks": {
"type": "boolean"
},
"etag": {
"type": "boolean"
}
},
"additionalProperties": false
}
}
},
"localDependencies": {
"description": "Dependencies from anywhere on local filesystem linked automatically by papua.",
"$ref": "#/definitions/dependency"
}
},
"definitions": {
"MinifyOptions": {
"type": "object",
"additionalProperties": true
},
"TemplateCompiler": {
"type": "object",
"additionalProperties": true
},
"dependency": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}