UNPKG

17.5 kBJSONView Raw
1{
2 "additionalProperties": false,
3 "definitions": {
4 "AfterEmitCleanOptions": {
5 "additionalProperties": false,
6 "properties": {
7 "excludes": {
8 "description": "Path array to exclude from deleting.",
9 "items": {
10 "type": "string"
11 },
12 "type": "array"
13 },
14 "paths": {
15 "description": "Paths to be deleted.",
16 "items": {
17 "type": "string"
18 },
19 "type": "array"
20 }
21 },
22 "type": "object"
23 },
24 "AssetEntry": {
25 "additionalProperties": false,
26 "properties": {
27 "exclude": {
28 "description": "The ignore list.",
29 "items": {
30 "type": "string"
31 },
32 "type": "array"
33 },
34 "from": {
35 "description": "The source file, it can be absolute or relative path or glob pattern.",
36 "type": "string"
37 },
38 "to": {
39 "description": "The output file name.",
40 "type": "string"
41 }
42 },
43 "type": "object"
44 },
45 "BeforeBuildCleanOptions": {
46 "additionalProperties": false,
47 "properties": {
48 "cleanCache": {
49 "description": "If true, delete cache directories before build.",
50 "type": "boolean"
51 },
52 "cleanOutDir": {
53 "description": "If true, delete output directory before build.",
54 "type": "boolean"
55 },
56 "excludes": {
57 "description": "Path array to exclude from deleting.",
58 "items": {
59 "type": "string"
60 },
61 "type": "array"
62 },
63 "paths": {
64 "description": "Paths to be deleted.",
65 "items": {
66 "type": "string"
67 },
68 "type": "array"
69 }
70 },
71 "type": "object"
72 },
73 "CleanOptions": {
74 "additionalProperties": false,
75 "properties": {
76 "afterEmit": {
77 "$ref": "#/definitions/AfterEmitCleanOptions",
78 "description": "After emit clean option."
79 },
80 "allowOutsideOutDir": {
81 "description": "Allows cleaning outside of output directory.",
82 "type": "boolean"
83 },
84 "allowOutsideWorkspaceRoot": {
85 "description": "Allows cleaning outside of workspace root.",
86 "type": "boolean"
87 },
88 "beforeBuild": {
89 "$ref": "#/definitions/BeforeBuildCleanOptions",
90 "description": "Before build clean option."
91 }
92 },
93 "type": "object"
94 },
95 "ExternalsObjectElement": {
96 "additionalProperties": {
97 "anyOf": [
98 {
99 "additionalProperties": {
100 "type": [
101 "string",
102 "boolean"
103 ]
104 },
105 "properties": {
106 "amd": {
107 "type": "string"
108 },
109 "commonjs": {
110 "type": "string"
111 },
112 "root": {
113 "type": "string"
114 }
115 },
116 "type": "object"
117 },
118 {
119 "type": [
120 "string",
121 "boolean"
122 ]
123 }
124 ]
125 },
126 "type": "object"
127 },
128 "GlobalEntry": {
129 "additionalProperties": false,
130 "properties": {
131 "bundleName": {
132 "description": "The bundle name for this extra entry point.",
133 "type": "string"
134 },
135 "input": {
136 "anyOf": [
137 {
138 "items": {
139 "type": "string"
140 },
141 "type": "array"
142 },
143 {
144 "type": "string"
145 }
146 ],
147 "description": "The file to include."
148 },
149 "lazy": {
150 "description": "If the bundle will be lazy loaded.",
151 "type": "boolean"
152 }
153 },
154 "type": "object"
155 },
156 "LibBundleOptions": {
157 "additionalProperties": false,
158 "properties": {
159 "entry": {
160 "description": "The entry file to be bundled.",
161 "type": "string"
162 },
163 "entryRoot": {
164 "description": "Entry root directory resolution.",
165 "enum": [
166 "outputPath",
167 "prevBundleOutDir",
168 "root",
169 "tsTranspilationOutDir"
170 ],
171 "type": "string"
172 },
173 "externals": {
174 "anyOf": [
175 {
176 "$ref": "#/definitions/ExternalsObjectElement"
177 },
178 {
179 "items": {
180 "anyOf": [
181 {
182 "$ref": "#/definitions/ExternalsObjectElement"
183 },
184 {
185 "type": "string"
186 }
187 ]
188 },
189 "type": "array"
190 },
191 {
192 "type": "string"
193 }
194 ],
195 "description": "The externals configuration option provides a way of excluding dependencies from the output bundle."
196 },
197 "includeDefaultAngularAndRxJsGlobals": {
198 "description": "If true, predefined Angular and rxjs globals are added.",
199 "type": "boolean"
200 },
201 "libraryTarget": {
202 "description": "Bundle module format.",
203 "enum": [
204 "cjs",
205 "esm",
206 "umd"
207 ],
208 "type": "string"
209 },
210 "minify": {
211 "description": "If true, minify file will be generated.",
212 "type": "boolean"
213 },
214 "nodeModulesAsExternals": {
215 "description": "If true, node_modules packages are not included in bundle.",
216 "type": "boolean"
217 },
218 "outputFilePath": {
219 "description": "Custom bundle output file path.",
220 "type": "string"
221 },
222 "tsConfig": {
223 "description": "The typescript configuration file to be used.",
224 "type": "string"
225 },
226 "tsTranspilationIndex": {
227 "description": "Array index for entry root tsTranspilationResult.",
228 "type": "number"
229 }
230 },
231 "type": "object"
232 },
233 "LibEnvOverridesOptions": {
234 "additionalProperties": {
235 "$ref": "#/definitions/LibProjectConfigBase"
236 },
237 "type": "object"
238 },
239 "LibProjectConfigBase": {
240 "additionalProperties": false,
241 "properties": {
242 "banner": {
243 "description": "Banner text to add at the top of each generated files. It can be text file name or raw text.",
244 "type": "string"
245 },
246 "bundles": {
247 "anyOf": [
248 {
249 "items": {
250 "$ref": "#/definitions/LibBundleOptions"
251 },
252 "type": "array"
253 },
254 {
255 "type": "boolean"
256 }
257 ],
258 "description": "Bundle target options."
259 },
260 "clean": {
261 "anyOf": [
262 {
263 "$ref": "#/definitions/CleanOptions"
264 },
265 {
266 "type": "boolean"
267 }
268 ],
269 "description": "Clean options."
270 },
271 "copy": {
272 "description": "Copy options.",
273 "items": {
274 "anyOf": [
275 {
276 "$ref": "#/definitions/AssetEntry"
277 },
278 {
279 "type": "string"
280 }
281 ]
282 },
283 "type": "array"
284 },
285 "externals": {
286 "anyOf": [
287 {
288 "$ref": "#/definitions/ExternalsObjectElement"
289 },
290 {
291 "items": {
292 "anyOf": [
293 {
294 "$ref": "#/definitions/ExternalsObjectElement"
295 },
296 {
297 "type": "string"
298 }
299 ]
300 },
301 "type": "array"
302 },
303 {
304 "type": "string"
305 }
306 ],
307 "description": "The externals configuration option provides a way of excluding dependencies from the output bundle."
308 },
309 "includeDefaultAngularAndRxJsGlobals": {
310 "description": "If true, predefined Angular and rxjs globals are added.",
311 "type": "boolean"
312 },
313 "libraryName": {
314 "description": "Represents your umd bundle name, by which other scripts on the same page can access it.",
315 "type": "string"
316 },
317 "nodeModulesAsExternals": {
318 "description": "If true, node_modules packages are not included in bundle.",
319 "type": "boolean"
320 },
321 "outputPath": {
322 "description": "The output directory for build results.",
323 "type": "string"
324 },
325 "packageEntryFileForTsTranspilation": {
326 "description": "The main entry point file for package.json.",
327 "type": "string"
328 },
329 "packageJsonCopy": {
330 "description": "Copy package.json file to output path.",
331 "type": "boolean"
332 },
333 "packageJsonOutDir": {
334 "description": "The output root directory for package.json file.",
335 "type": "string"
336 },
337 "platformTarget": {
338 "description": "Tell the build system which platform environment the application is targeting.",
339 "enum": [
340 "node",
341 "web"
342 ],
343 "type": "string"
344 },
345 "skip": {
346 "description": "If true, this project config will be skipped by the build process.",
347 "type": "boolean"
348 },
349 "sourceMap": {
350 "description": "If true, sourcemaps will be generated.",
351 "type": "boolean"
352 },
353 "stylePreprocessorOptions": {
354 "$ref": "#/definitions/StylePreprocessorOptions",
355 "description": "Options to pass to style preprocessors."
356 },
357 "styles": {
358 "description": "List of global style entries.",
359 "items": {
360 "anyOf": [
361 {
362 "$ref": "#/definitions/GlobalEntry"
363 },
364 {
365 "type": "string"
366 }
367 ]
368 },
369 "type": "array"
370 },
371 "tsConfig": {
372 "description": "The typescript configuration file to be used.",
373 "type": "string"
374 },
375 "tsTranspilations": {
376 "anyOf": [
377 {
378 "items": {
379 "$ref": "#/definitions/TsTranspilationOptions"
380 },
381 "type": "array"
382 },
383 {
384 "type": "boolean"
385 }
386 ],
387 "description": "Typescript transpilation options."
388 }
389 },
390 "type": "object"
391 },
392 "StylePreprocessorOptions": {
393 "additionalProperties": false,
394 "properties": {
395 "includePaths": {
396 "description": "An array of paths that LibSass can look in to attempt to resolve your @import declarations.",
397 "items": {
398 "type": "string"
399 },
400 "type": "array"
401 }
402 },
403 "type": "object"
404 },
405 "TsTranspilationOptions": {
406 "additionalProperties": false,
407 "properties": {
408 "declaration": {
409 "description": "Override declaration option for this transpilation.",
410 "type": "boolean"
411 },
412 "inlineAssets": {
413 "description": "If true, templateUrl and styleUrls resources are inlined.",
414 "type": "boolean"
415 },
416 "moveTypingFilesToPackageRoot": {
417 "description": "Move typing and metadata files to package.json output directory root.",
418 "type": "boolean"
419 },
420 "outDir": {
421 "description": "Custom output directory for this transpilation.",
422 "type": "string"
423 },
424 "reExportTypingEntryToOutputRoot": {
425 "description": "If true, re-export secondary entry point typing and metadata file at output root.",
426 "type": "boolean"
427 },
428 "replaceVersionPlaceholder": {
429 "description": "If true, replaces version placeholder with package version.",
430 "type": "boolean"
431 },
432 "target": {
433 "description": "Override script target for this transpilation.",
434 "enum": [
435 "es2015",
436 "es2016",
437 "es2017",
438 "es2018",
439 "es5",
440 "esnext"
441 ],
442 "type": "string"
443 },
444 "tsConfig": {
445 "description": "Typescript configuration file for this transpilation.",
446 "type": "string"
447 },
448 "useTsc": {
449 "description": "If true, use tsc instead of ngc.",
450 "type": "boolean"
451 }
452 },
453 "type": "object"
454 }
455 },
456 "properties": {
457 "$schema": {
458 "description": "Link to schema.",
459 "type": "string"
460 },
461 "banner": {
462 "description": "Banner text to add at the top of each generated files. It can be text file name or raw text.",
463 "type": "string"
464 },
465 "bundles": {
466 "anyOf": [
467 {
468 "items": {
469 "$ref": "#/definitions/LibBundleOptions"
470 },
471 "type": "array"
472 },
473 {
474 "type": "boolean"
475 }
476 ],
477 "description": "Bundle target options."
478 },
479 "clean": {
480 "anyOf": [
481 {
482 "$ref": "#/definitions/CleanOptions"
483 },
484 {
485 "type": "boolean"
486 }
487 ],
488 "description": "Clean options."
489 },
490 "copy": {
491 "description": "Copy options.",
492 "items": {
493 "anyOf": [
494 {
495 "$ref": "#/definitions/AssetEntry"
496 },
497 {
498 "type": "string"
499 }
500 ]
501 },
502 "type": "array"
503 },
504 "envOverrides": {
505 "$ref": "#/definitions/LibEnvOverridesOptions",
506 "description": "To override properties based on build environment."
507 },
508 "extends": {
509 "anyOf": [
510 {
511 "items": {
512 "type": "string"
513 },
514 "type": "array"
515 },
516 {
517 "type": "string"
518 }
519 ],
520 "description": "The name of build-in configuration preset, or path(s) to other configuration files which are extended by this configuration."
521 },
522 "externals": {
523 "anyOf": [
524 {
525 "$ref": "#/definitions/ExternalsObjectElement"
526 },
527 {
528 "items": {
529 "anyOf": [
530 {
531 "$ref": "#/definitions/ExternalsObjectElement"
532 },
533 {
534 "type": "string"
535 }
536 ]
537 },
538 "type": "array"
539 },
540 {
541 "type": "string"
542 }
543 ],
544 "description": "The externals configuration option provides a way of excluding dependencies from the output bundle."
545 },
546 "includeDefaultAngularAndRxJsGlobals": {
547 "description": "If true, predefined Angular and rxjs globals are added.",
548 "type": "boolean"
549 },
550 "libraryName": {
551 "description": "Represents your umd bundle name, by which other scripts on the same page can access it.",
552 "type": "string"
553 },
554 "name": {
555 "description": "The name of this configuration.",
556 "type": "string"
557 },
558 "nodeModulesAsExternals": {
559 "description": "If true, node_modules packages are not included in bundle.",
560 "type": "boolean"
561 },
562 "outputPath": {
563 "description": "The output directory for build results.",
564 "type": "string"
565 },
566 "packageEntryFileForTsTranspilation": {
567 "description": "The main entry point file for package.json.",
568 "type": "string"
569 },
570 "packageJsonCopy": {
571 "description": "Copy package.json file to output path.",
572 "type": "boolean"
573 },
574 "packageJsonOutDir": {
575 "description": "The output root directory for package.json file.",
576 "type": "string"
577 },
578 "platformTarget": {
579 "description": "Tell the build system which platform environment the application is targeting.",
580 "enum": [
581 "node",
582 "web"
583 ],
584 "type": "string"
585 },
586 "root": {
587 "description": "The project root folder.",
588 "type": "string"
589 },
590 "skip": {
591 "description": "If true, this project config will be skipped by the build process.",
592 "type": "boolean"
593 },
594 "sourceMap": {
595 "description": "If true, sourcemaps will be generated.",
596 "type": "boolean"
597 },
598 "stylePreprocessorOptions": {
599 "$ref": "#/definitions/StylePreprocessorOptions",
600 "description": "Options to pass to style preprocessors."
601 },
602 "styles": {
603 "description": "List of global style entries.",
604 "items": {
605 "anyOf": [
606 {
607 "$ref": "#/definitions/GlobalEntry"
608 },
609 {
610 "type": "string"
611 }
612 ]
613 },
614 "type": "array"
615 },
616 "tsConfig": {
617 "description": "The typescript configuration file to be used.",
618 "type": "string"
619 },
620 "tsTranspilations": {
621 "anyOf": [
622 {
623 "items": {
624 "$ref": "#/definitions/TsTranspilationOptions"
625 },
626 "type": "array"
627 },
628 {
629 "type": "boolean"
630 }
631 ],
632 "description": "Typescript transpilation options."
633 }
634 },
635 "type": "object"
636}
\No newline at end of file