UNPKG

73.9 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "id": "https://angular.io/schemas/cli-1/schema",
4 "title": "Angular CLI Configuration",
5 "type": "object",
6 "properties": {
7 "$schema": {
8 "type": "string"
9 },
10 "version": {
11 "$ref": "#/definitions/fileVersion"
12 },
13 "cli": {
14 "$ref": "#/definitions/cliOptions"
15 },
16 "schematics": {
17 "$ref": "#/definitions/schematicOptions"
18 },
19 "newProjectRoot": {
20 "type": "string",
21 "description": "Path where new projects will be created."
22 },
23 "defaultProject": {
24 "type": "string",
25 "description": "Default project name used in commands."
26 },
27 "projects": {
28 "type": "object",
29 "patternProperties": {
30 "^(?:@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$": {
31 "$ref": "#/definitions/project"
32 }
33 },
34 "additionalProperties": false
35 }
36 },
37 "additionalProperties": false,
38 "required": [
39 "version"
40 ],
41 "definitions": {
42 "cliOptions": {
43 "type": "object",
44 "properties": {
45 "defaultCollection": {
46 "description": "The default schematics collection to use.",
47 "type": "string"
48 },
49 "packageManager": {
50 "description": "Specify which package manager tool to use.",
51 "type": "string",
52 "enum": [ "npm", "cnpm", "yarn", "pnpm" ]
53 },
54 "warnings": {
55 "description": "Control CLI specific console warnings",
56 "type": "object",
57 "properties": {
58 "versionMismatch": {
59 "description": "Show a warning when the global version is newer than the local one.",
60 "type": "boolean"
61 },
62 "typescriptMismatch": {
63 "description": "Show a warning when the TypeScript version is incompatible.",
64 "type": "boolean",
65 "x-deprecated": true
66 }
67 }
68 },
69 "analytics": {
70 "type": ["boolean", "string"],
71 "description": "Share anonymous usage data with the Angular Team at Google."
72 }
73 },
74 "additionalProperties": false
75 },
76 "schematicOptions": {
77 "type": "object",
78 "properties": {
79 "@schematics/angular:component": {
80 "type": "object",
81 "properties": {
82 "changeDetection": {
83 "description": "Specifies the change detection strategy.",
84 "enum": ["Default", "OnPush"],
85 "type": "string",
86 "default": "Default",
87 "alias": "c"
88 },
89 "displayBlock": {
90 "description": "Specifies if the style will contain `:host { display: block; }`.",
91 "type": "boolean",
92 "default": false,
93 "alias": "b"
94 },
95 "entryComponent": {
96 "type": "boolean",
97 "default": false,
98 "description": "Specifies if the component is an entry component of declaring module."
99 },
100 "export": {
101 "type": "boolean",
102 "default": false,
103 "description": "Specifies if declaring module exports the component."
104 },
105 "flat": {
106 "type": "boolean",
107 "description": "Flag to indicate if a directory is created.",
108 "default": false
109 },
110 "inlineStyle": {
111 "description": "Specifies if the style will be in the ts file.",
112 "type": "boolean",
113 "default": false,
114 "alias": "s"
115 },
116 "inlineTemplate": {
117 "description": "Specifies if the template will be in the ts file.",
118 "type": "boolean",
119 "default": false,
120 "alias": "t"
121 },
122 "module": {
123 "type": "string",
124 "description": "Allows specification of the declaring module.",
125 "alias": "m"
126 },
127 "prefix": {
128 "type": "string",
129 "format": "html-selector",
130 "description": "The prefix to apply to generated selectors.",
131 "alias": "p"
132 },
133 "selector": {
134 "type": "string",
135 "format": "html-selector",
136 "description": "The selector to use for the component."
137 },
138 "skipImport": {
139 "type": "boolean",
140 "description": "Flag to skip the module import.",
141 "default": false
142 },
143 "style": {
144 "description": "The file extension or preprocessor to use for style files.",
145 "type": "string",
146 "default": "css",
147 "enum": [
148 "css",
149 "scss",
150 "sass",
151 "less",
152 "styl"
153 ]
154 },
155 "viewEncapsulation": {
156 "description": "Specifies the view encapsulation strategy.",
157 "enum": ["Emulated", "Native", "None", "ShadowDom"],
158 "type": "string",
159 "alias": "v"
160 },
161 "skipTests": {
162 "type": "boolean",
163 "description": "When true, does not create test files.",
164 "default": false
165 }
166 }
167 },
168 "@schematics/angular:directive": {
169 "type": "object",
170 "properties": {
171 "export": {
172 "type": "boolean",
173 "default": false,
174 "description": "Specifies if declaring module exports the directive."
175 },
176 "flat": {
177 "type": "boolean",
178 "description": "Flag to indicate if a directory is created.",
179 "default": true
180 },
181 "module": {
182 "type": "string",
183 "description": "Allows specification of the declaring module.",
184 "alias": "m"
185 },
186 "prefix": {
187 "type": "string",
188 "format": "html-selector",
189 "description": "The prefix to apply to generated selectors.",
190 "default": "app",
191 "alias": "p"
192 },
193 "selector": {
194 "type": "string",
195 "format": "html-selector",
196 "description": "The selector to use for the directive."
197 },
198 "skipImport": {
199 "type": "boolean",
200 "description": "Flag to skip the module import.",
201 "default": false
202 },
203 "skipTests": {
204 "type": "boolean",
205 "description": "When true, does not create test files.",
206 "default": false
207 }
208 }
209 },
210 "@schematics/angular:module": {
211 "type": "object",
212 "properties": {
213 "routing": {
214 "type": "boolean",
215 "description": "Generates a routing module.",
216 "default": false
217 },
218 "routingScope": {
219 "enum": ["Child", "Root"],
220 "type": "string",
221 "description": "The scope for the generated routing.",
222 "default": "Child"
223 },
224 "flat": {
225 "type": "boolean",
226 "description": "Flag to indicate if a directory is created.",
227 "default": false
228 },
229 "commonModule": {
230 "type": "boolean",
231 "description": "Flag to control whether the CommonModule is imported.",
232 "default": true,
233 "visible": false
234 },
235 "module": {
236 "type": "string",
237 "description": "Allows specification of the declaring module.",
238 "alias": "m"
239 }
240 }
241 },
242 "@schematics/angular:service": {
243 "type": "object",
244 "properties": {
245 "flat": {
246 "type": "boolean",
247 "default": true,
248 "description": "Flag to indicate if a directory is created."
249 },
250 "skipTests": {
251 "type": "boolean",
252 "description": "When true, does not create test files.",
253 "default": false
254 }
255 }
256 },
257 "@schematics/angular:pipe": {
258 "type": "object",
259 "properties": {
260 "flat": {
261 "type": "boolean",
262 "default": true,
263 "description": "Flag to indicate if a directory is created."
264 },
265 "skipTests": {
266 "type": "boolean",
267 "description": "When true, does not create test files.",
268 "default": false
269 },
270 "skipImport": {
271 "type": "boolean",
272 "default": false,
273 "description": "Allows for skipping the module import."
274 },
275 "module": {
276 "type": "string",
277 "default": "",
278 "description": "Allows specification of the declaring module.",
279 "alias": "m"
280 },
281 "export": {
282 "type": "boolean",
283 "default": false,
284 "description": "Specifies if declaring module exports the pipe."
285 }
286 }
287 },
288 "@schematics/angular:class": {
289 "type": "object",
290 "properties": {
291 "skipTests": {
292 "type": "boolean",
293 "description": "When true, does not create test files.",
294 "default": false
295 }
296 }
297 }
298 },
299 "additionalProperties": {
300 "type": "object"
301 }
302 },
303 "fileVersion": {
304 "type": "integer",
305 "description": "File format version",
306 "minimum": 1
307 },
308 "project": {
309 "type": "object",
310 "properties": {
311 "cli": {
312 "$ref": "#/definitions/cliOptions"
313 },
314 "schematics": {
315 "$ref": "#/definitions/schematicOptions"
316 },
317 "prefix": {
318 "type": "string",
319 "format": "html-selector",
320 "description": "The prefix to apply to generated selectors."
321 },
322 "root": {
323 "type": "string",
324 "description": "Root of the project files."
325 },
326 "i18n": {
327 "$ref": "#/definitions/project/definitions/i18n"
328 },
329 "sourceRoot": {
330 "type": "string",
331 "description": "The root of the source files, assets and index.html file structure."
332 },
333 "projectType": {
334 "type": "string",
335 "description": "Project type.",
336 "enum": [
337 "application",
338 "library"
339 ]
340 },
341 "architect": {
342 "type": "object",
343 "additionalProperties": {
344 "$ref": "#/definitions/project/definitions/target"
345 }
346 },
347 "targets": {
348 "type": "object",
349 "additionalProperties": {
350 "$ref": "#/definitions/project/definitions/target"
351 }
352 }
353 },
354 "required": [
355 "root",
356 "projectType"
357 ],
358 "anyOf": [
359 {
360 "required": ["architect"],
361 "not": {
362 "required": ["targets"]
363 }
364 },
365 {
366 "required": ["targets"],
367 "not": {
368 "required": ["architect"]
369 }
370 },
371 {
372 "not": {
373 "required": [
374 "targets",
375 "architect"
376 ]
377 }
378 }
379 ],
380 "additionalProperties": false,
381 "patternProperties": {
382 "^[a-z]{1,3}-.*": {}
383 },
384 "definitions": {
385 "i18n": {
386 "description": "Project i18n options",
387 "type": "object",
388 "properties": {
389 "sourceLocale": {
390 "oneOf": [
391 {
392 "type": "string",
393 "description": "Specifies the source locale of the application.",
394 "default": "en-US",
395 "$comment": "IETF BCP 47 language tag (simplified)",
396 "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
397 },
398 {
399 "type": "object",
400 "description": "Localization options to use for the source locale",
401 "properties": {
402 "code": {
403 "type": "string",
404 "description": "Specifies the locale code of the source locale",
405 "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
406 },
407 "baseHref": {
408 "type": "string",
409 "description": "HTML base HREF to use for the locale (defaults to the locale code)"
410 }
411 },
412 "additionalProperties": false
413 }
414 ]
415 },
416 "locales": {
417 "type": "object",
418 "additionalProperties": false,
419 "patternProperties": {
420 "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$": {
421 "oneOf": [
422 {
423 "type": "string",
424 "description": "Localization file to use for i18n"
425 },
426 {
427 "type": "object",
428 "description": "Localization options to use for the locale",
429 "properties": {
430 "translation": {
431 "type": "string",
432 "description": "Localization file to use for i18n"
433 },
434 "baseHref": {
435 "type": "string",
436 "description": "HTML base HREF to use for the locale (defaults to the locale code)"
437 }
438 },
439 "additionalProperties": false
440 }
441 ]
442 }
443 }
444 }
445 },
446 "additionalProperties": false
447 },
448 "target": {
449 "oneOf": [
450 {
451 "$comment": "Extendable target with custom builder",
452 "type": "object",
453 "properties": {
454 "builder": {
455 "type": "string",
456 "description": "The builder used for this package.",
457 "not": {
458 "enum": [
459 "@angular-devkit/build-angular:app-shell",
460 "@angular-devkit/build-angular:browser",
461 "@angular-devkit/build-angular:dev-server",
462 "@angular-devkit/build-angular:extract-i18n",
463 "@angular-devkit/build-angular:karma",
464 "@angular-devkit/build-angular:protractor",
465 "@angular-devkit/build-angular:server",
466 "@angular-devkit/build-angular:tslint"
467 ]
468 }
469 },
470 "options": {
471 "type": "object"
472 },
473 "configurations": {
474 "type": "object",
475 "description": "A map of alternative target options.",
476 "additionalProperties": {
477 "type": "object"
478 }
479 }
480 },
481 "required": [
482 "builder"
483 ]
484 },
485 {
486 "type": "object",
487 "properties": {
488 "builder": { "const": "@angular-devkit/build-angular:app-shell" },
489 "options": { "$ref": "#/definitions/targetOptions/definitions/appShell" },
490 "configurations": {
491 "type": "object",
492 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/appShell" }
493 }
494 }
495 },
496 {
497 "type": "object",
498 "properties": {
499 "builder": { "const": "@angular-devkit/build-angular:browser" },
500 "options": { "$ref": "#/definitions/targetOptions/definitions/browser" },
501 "configurations": {
502 "type": "object",
503 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/browser" }
504 }
505 }
506 },
507 {
508 "type": "object",
509 "properties": {
510 "builder": { "const": "@angular-devkit/build-angular:dev-server" },
511 "options": { "$ref": "#/definitions/targetOptions/definitions/devServer" },
512 "configurations": {
513 "type": "object",
514 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/devServer" }
515 }
516 }
517 },
518 {
519 "type": "object",
520 "properties": {
521 "builder": { "const": "@angular-devkit/build-angular:extract-i18n" },
522 "options": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" },
523 "configurations": {
524 "type": "object",
525 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" }
526 }
527 }
528 },
529 {
530 "type": "object",
531 "properties": {
532 "builder": { "const": "@angular-devkit/build-angular:karma" },
533 "options": { "$ref": "#/definitions/targetOptions/definitions/karma" },
534 "configurations": {
535 "type": "object",
536 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/karma" }
537 }
538 }
539 },
540 {
541 "type": "object",
542 "properties": {
543 "builder": { "const": "@angular-devkit/build-angular:protractor" },
544 "options": { "$ref": "#/definitions/targetOptions/definitions/protractor" },
545 "configurations": {
546 "type": "object",
547 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/protractor" }
548 }
549 }
550 },
551 {
552 "type": "object",
553 "properties": {
554 "builder": { "const": "@angular-devkit/build-angular:server" },
555 "options": { "$ref": "#/definitions/targetOptions/definitions/server" },
556 "configurations": {
557 "type": "object",
558 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/server" }
559 }
560 }
561 },
562 {
563 "type": "object",
564 "properties": {
565 "builder": { "const": "@angular-devkit/build-angular:tslint" },
566 "options": { "$ref": "#/definitions/targetOptions/definitions/tslint" },
567 "configurations": {
568 "type": "object",
569 "additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }
570 }
571 }
572 }
573 ]
574 }
575 }
576 },
577 "global": {
578 "type": "object",
579 "properties": {
580 "$schema": {
581 "type": "string",
582 "format": "uri"
583 },
584 "version": {
585 "$ref": "#/definitions/fileVersion"
586 },
587 "cli": {
588 "$ref": "#/definitions/cliOptions"
589 },
590 "schematics": {
591 "$ref": "#/definitions/schematicOptions"
592 }
593 },
594 "required": [
595 "version"
596 ]
597 },
598 "targetOptions": {
599 "type": "null",
600 "definitions": {
601 "appShell": {
602 "description": "App Shell target options for Architect.",
603 "type": "object",
604 "properties": {
605 "browserTarget": {
606 "type": "string",
607 "description": "Target to build."
608 },
609 "serverTarget": {
610 "type": "string",
611 "description": "Server target to use for rendering the app shell."
612 },
613 "appModuleBundle": {
614 "type": "string",
615 "description": "Script that exports the Server AppModule to render. This should be the main JavaScript outputted by the server target. By default we will resolve the outputPath of the serverTarget and find a bundle named 'main' in it (whether or not there's a hash tag)."
616 },
617 "route": {
618 "type": "string",
619 "description": "The route to render.",
620 "default": "/"
621 },
622 "inputIndexPath": {
623 "type": "string",
624 "description": "The input path for the index.html file. By default uses the output index.html of the browser target."
625 },
626 "outputIndexPath": {
627 "type": "string",
628 "description": "The output path of the index.html file. By default will overwrite the input file."
629 }
630 },
631 "additionalProperties": false
632 },
633 "browser": {
634 "title": "Webpack browser schema for Architect.",
635 "description": "Browser target options",
636 "properties": {
637 "assets": {
638 "type": "array",
639 "description": "List of static application assets.",
640 "default": [],
641 "items": {
642 "$ref": "#/definitions/targetOptions/definitions/browser/definitions/assetPattern"
643 }
644 },
645 "main": {
646 "type": "string",
647 "description": "The name of the main entry-point file."
648 },
649 "polyfills": {
650 "type": "string",
651 "description": "The name of the polyfills file."
652 },
653 "tsConfig": {
654 "type": "string",
655 "description": "The name of the TypeScript configuration file."
656 },
657 "scripts": {
658 "description": "Global scripts to be included in the build.",
659 "type": "array",
660 "default": [],
661 "items": {
662 "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
663 }
664 },
665 "styles": {
666 "description": "Global styles to be included in the build.",
667 "type": "array",
668 "default": [],
669 "items": {
670 "$ref": "#/definitions/targetOptions/definitions/browser/definitions/extraEntryPoint"
671 }
672 },
673 "stylePreprocessorOptions": {
674 "description": "Options to pass to style preprocessors.",
675 "type": "object",
676 "properties": {
677 "includePaths": {
678 "description": "Paths to include. Paths will be resolved to project root.",
679 "type": "array",
680 "items": {
681 "type": "string"
682 },
683 "default": []
684 }
685 },
686 "additionalProperties": false
687 },
688 "optimization": {
689 "description": "Enables optimization of the build output.",
690 "oneOf": [
691 {
692 "type": "object",
693 "properties": {
694 "scripts": {
695 "type": "boolean",
696 "description": "Enables optimization of the scripts output.",
697 "default": true
698 },
699 "styles": {
700 "type": "boolean",
701 "description": "Enables optimization of the styles output.",
702 "default": true
703 }
704 },
705 "additionalProperties": false
706 },
707 {
708 "type": "boolean"
709 }
710 ]
711 },
712 "fileReplacements": {
713 "description": "Replace files with other files in the build.",
714 "type": "array",
715 "items": {
716 "$ref": "#/definitions/targetOptions/definitions/browser/definitions/fileReplacement"
717 },
718 "default": []
719 },
720 "outputPath": {
721 "type": "string",
722 "description": "Path where output will be placed."
723 },
724 "resourcesOutputPath": {
725 "type": "string",
726 "description": "The path where style resources will be placed, relative to outputPath."
727 },
728 "aot": {
729 "type": "boolean",
730 "description": "Build using Ahead of Time compilation.",
731 "default": false
732 },
733 "sourceMap": {
734 "description": "Output sourcemaps.",
735 "default": true,
736 "oneOf": [
737 {
738 "type": "object",
739 "properties": {
740 "scripts": {
741 "type": "boolean",
742 "description": "Output sourcemaps for all scripts.",
743 "default": true
744 },
745 "styles": {
746 "type": "boolean",
747 "description": "Output sourcemaps for all styles.",
748 "default": true
749 },
750 "hidden": {
751 "type": "boolean",
752 "description": "Output sourcemaps used for error reporting tools.",
753 "default": false
754 },
755 "vendor": {
756 "type": "boolean",
757 "description": "Resolve vendor packages sourcemaps.",
758 "default": false
759 }
760 },
761 "additionalProperties": false
762 },
763 {
764 "type": "boolean"
765 }
766 ]
767 },
768 "vendorSourceMap": {
769 "type": "boolean",
770 "description": "Resolve vendor packages sourcemaps.",
771 "default": false
772 },
773 "evalSourceMap": {
774 "type": "boolean",
775 "description": "Output in-file eval sourcemaps.",
776 "default": false
777 },
778 "vendorChunk": {
779 "type": "boolean",
780 "description": "Use a separate bundle containing only vendor libraries.",
781 "default": true
782 },
783 "commonChunk": {
784 "type": "boolean",
785 "description": "Use a separate bundle containing code used across multiple bundles.",
786 "default": true
787 },
788 "baseHref": {
789 "type": "string",
790 "description": "Base url for the application being built."
791 },
792 "deployUrl": {
793 "type": "string",
794 "description": "URL where files will be deployed."
795 },
796 "verbose": {
797 "type": "boolean",
798 "description": "Adds more details to output logging.",
799 "default": false
800 },
801 "progress": {
802 "type": "boolean",
803 "description": "Log progress to the console while building.",
804 "default": true
805 },
806 "localize": {
807 "$ref": "#/definitions/buildersOptions/localize"
808 },
809 "i18nMissingTranslation": {
810 "$ref": "#/definitions/buildersOptions/missingTranslation"
811 },
812 "i18nFile": {
813 "type": "string",
814 "description": "Localization file to use for i18n.",
815 "x-deprecated": "Deprecated since 9.0"
816 },
817 "i18nFormat": {
818 "type": "string",
819 "description": "Format of the localization file specified with --i18n-file.",
820 "x-deprecated": "Deprecated since 9.0"
821 },
822 "i18nLocale": {
823 "type": "string",
824 "description": "Locale to use for i18n.",
825 "x-deprecated": "Deprecated since 9.0"
826 },
827 "extractCss": {
828 "type": "boolean",
829 "description": "Extract css from global styles onto css files instead of js ones.",
830 "default": false
831 },
832 "watch": {
833 "type": "boolean",
834 "description": "Run build when files change.",
835 "default": false
836 },
837 "outputHashing": {
838 "type": "string",
839 "description": "Define the output filename cache-busting hashing mode.",
840 "default": "none",
841 "enum": [
842 "none",
843 "all",
844 "media",
845 "bundles"
846 ]
847 },
848 "poll": {
849 "type": "number",
850 "description": "Enable and define the file watching poll time period in milliseconds."
851 },
852 "deleteOutputPath": {
853 "type": "boolean",
854 "description": "Delete the output path before building.",
855 "default": true
856 },
857 "preserveSymlinks": {
858 "type": "boolean",
859 "description": "Do not use the real path when resolving modules.",
860 "default": false
861 },
862 "extractLicenses": {
863 "type": "boolean",
864 "description": "Extract all licenses in a separate file, in the case of production builds only.",
865 "default": true
866 },
867 "showCircularDependencies": {
868 "type": "boolean",
869 "description": "Show circular dependency warnings on builds.",
870 "default": true
871 },
872 "buildOptimizer": {
873 "type": "boolean",
874 "description": "Enables @angular-devkit/build-optimizer optimizations when using the 'aot' option.",
875 "default": false
876 },
877 "namedChunks": {
878 "type": "boolean",
879 "description": "Use file name for lazy loaded chunks.",
880 "default": true
881 },
882 "subresourceIntegrity": {
883 "type": "boolean",
884 "description": "Enables the use of subresource integrity validation.",
885 "default": false
886 },
887 "serviceWorker": {
888 "type": "boolean",
889 "description": "Generates a service worker config for production builds.",
890 "default": false
891 },
892 "ngswConfigPath": {
893 "type": "string",
894 "description": "Path to ngsw-config.json."
895 },
896 "skipAppShell": {
897 "type": "boolean",
898 "description": "Flag to prevent building an app shell.",
899 "default": false
900 },
901 "index": {
902 "description": "Configures the generation of the application's HTML index.",
903 "oneOf": [
904 {
905 "type": "string",
906 "description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
907 },
908 {
909 "type": "object",
910 "description": "",
911 "properties": {
912 "input": {
913 "type": "string",
914 "minLength": 1,
915 "description": "The path of a file to use for the application's generated HTML index."
916 },
917 "output": {
918 "type": "string",
919 "minLength": 1,
920 "default": "index.html",
921 "description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
922 }
923 },
924 "required": ["input"]
925 }
926 ]
927 },
928 "statsJson": {
929 "type": "boolean",
930 "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
931 "default": false
932 },
933 "forkTypeChecker": {
934 "type": "boolean",
935 "description": "Run the TypeScript type checker in a forked process.",
936 "default": true
937 },
938 "lazyModules": {
939 "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
940 "type": "array",
941 "items": {
942 "type": "string"
943 },
944 "default": []
945 },
946 "budgets": {
947 "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
948 "type": "array",
949 "items": {
950 "$ref": "#/definitions/targetOptions/definitions/browser/definitions/budget"
951 },
952 "default": []
953 },
954 "es5BrowserSupport": {
955 "description": "Enables conditionally loaded ES2015 polyfills.",
956 "type": "boolean",
957 "default": false
958 },
959 "rebaseRootRelativeCssUrls": {
960 "description": "Change root relative URLs in stylesheets to include base HREF and deploy URL. Use only for compatibility and transition. The behavior of this option is non-standard and will be removed in the next major release.",
961 "type": "boolean",
962 "default": false,
963 "x-deprecated": true
964 },
965 "webWorkerTsConfig": {
966 "type": "string",
967 "description": "TypeScript configuration for Web Worker modules."
968 },
969 "crossOrigin": {
970 "type": "string",
971 "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
972 "default": "none",
973 "enum": [
974 "none",
975 "anonymous",
976 "use-credentials"
977 ]
978 }
979 },
980 "additionalProperties": false,
981 "definitions": {
982 "assetPattern": {
983 "oneOf": [
984 {
985 "type": "object",
986 "properties": {
987 "glob": {
988 "type": "string",
989 "description": "The pattern to match."
990 },
991 "input": {
992 "type": "string",
993 "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
994 },
995 "output": {
996 "type": "string",
997 "description": "Absolute path within the output."
998 },
999 "ignore": {
1000 "description": "An array of globs to ignore.",
1001 "type": "array",
1002 "items": {
1003 "type": "string"
1004 }
1005 }
1006 },
1007 "additionalProperties": false,
1008 "required": [
1009 "glob",
1010 "input",
1011 "output"
1012 ]
1013 },
1014 {
1015 "type": "string",
1016 "description": "The file to include."
1017 }
1018 ]
1019 },
1020 "fileReplacement": {
1021 "oneOf": [
1022 {
1023 "type": "object",
1024 "properties": {
1025 "src": {
1026 "type": "string"
1027 },
1028 "replaceWith": {
1029 "type": "string"
1030 }
1031 },
1032 "additionalProperties": false,
1033 "required": [
1034 "src",
1035 "replaceWith"
1036 ]
1037 },
1038 {
1039 "type": "object",
1040 "properties": {
1041 "replace": {
1042 "type": "string"
1043 },
1044 "with": {
1045 "type": "string"
1046 }
1047 },
1048 "additionalProperties": false,
1049 "required": [
1050 "replace",
1051 "with"
1052 ]
1053 }
1054 ]
1055 },
1056 "extraEntryPoint": {
1057 "oneOf": [
1058 {
1059 "type": "object",
1060 "properties": {
1061 "input": {
1062 "type": "string",
1063 "description": "The file to include."
1064 },
1065 "bundleName": {
1066 "type": "string",
1067 "description": "The bundle name for this extra entry point."
1068 },
1069 "lazy": {
1070 "type": "boolean",
1071 "description": "If the bundle will be lazy loaded.",
1072 "default": false
1073 },
1074 "inject": {
1075 "type": "boolean",
1076 "description": "If the bundle will be referenced in the HTML file.",
1077 "default": true
1078 }
1079 },
1080 "additionalProperties": false,
1081 "required": [
1082 "input"
1083 ]
1084 },
1085 {
1086 "type": "string",
1087 "description": "The file to include."
1088 }
1089 ]
1090 },
1091 "budget": {
1092 "type": "object",
1093 "properties": {
1094 "type": {
1095 "type": "string",
1096 "description": "The type of budget.",
1097 "enum": [
1098 "all",
1099 "allScript",
1100 "any",
1101 "anyScript",
1102 "anyComponentStyle",
1103 "bundle",
1104 "initial"
1105 ]
1106 },
1107 "name": {
1108 "type": "string",
1109 "description": "The name of the bundle."
1110 },
1111 "baseline": {
1112 "type": "string",
1113 "description": "The baseline size for comparison."
1114 },
1115 "maximumWarning": {
1116 "type": "string",
1117 "description": "The maximum threshold for warning relative to the baseline."
1118 },
1119 "maximumError": {
1120 "type": "string",
1121 "description": "The maximum threshold for error relative to the baseline."
1122 },
1123 "minimumWarning": {
1124 "type": "string",
1125 "description": "The minimum threshold for warning relative to the baseline."
1126 },
1127 "minimumError": {
1128 "type": "string",
1129 "description": "The minimum threshold for error relative to the baseline."
1130 },
1131 "warning": {
1132 "type": "string",
1133 "description": "The threshold for warning relative to the baseline (min & max)."
1134 },
1135 "error": {
1136 "type": "string",
1137 "description": "The threshold for error relative to the baseline (min & max)."
1138 }
1139 },
1140 "additionalProperties": false,
1141 "required": [
1142 "type"
1143 ]
1144 }
1145 }
1146 },
1147 "devServer": {
1148 "description": "Dev Server target options for Architect.",
1149 "type": "object",
1150 "properties": {
1151 "browserTarget": {
1152 "type": "string",
1153 "description": "Target to serve."
1154 },
1155 "port": {
1156 "type": "number",
1157 "description": "Port to listen on.",
1158 "default": 4200
1159 },
1160 "host": {
1161 "type": "string",
1162 "description": "Host to listen on.",
1163 "default": "localhost"
1164 },
1165 "proxyConfig": {
1166 "type": "string",
1167 "description": "Proxy configuration file."
1168 },
1169 "ssl": {
1170 "type": "boolean",
1171 "description": "Serve using HTTPS.",
1172 "default": false
1173 },
1174 "sslKey": {
1175 "type": "string",
1176 "description": "SSL key to use for serving HTTPS."
1177 },
1178 "sslCert": {
1179 "type": "string",
1180 "description": "SSL certificate to use for serving HTTPS."
1181 },
1182 "open": {
1183 "type": "boolean",
1184 "description": "When true, open the live-reload URL in default browser.",
1185 "default": false,
1186 "alias": "o"
1187 },
1188 "liveReload": {
1189 "type": "boolean",
1190 "description": "When true, reload the page on change using live-reload.",
1191 "default": true
1192 },
1193 "publicHost": {
1194 "type": "string",
1195 "description": "The URL that the browser client (or live-reload client, if enabled) should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies."
1196 },
1197 "allowedHosts": {
1198 "type": "array",
1199 "description": "Whitelist of hosts that are allowed to access the dev server.",
1200 "default": [],
1201 "items": {
1202 "type": "string"
1203 }
1204 },
1205 "servePath": {
1206 "type": "string",
1207 "description": "The pathname where the app will be served."
1208 },
1209 "disableHostCheck": {
1210 "type": "boolean",
1211 "description": "When true, don't verify that connected clients are part of allowed hosts.",
1212 "default": false
1213 },
1214 "hmr": {
1215 "type": "boolean",
1216 "description": "When true, enable hot module replacement.",
1217 "default": false
1218 },
1219 "watch": {
1220 "type": "boolean",
1221 "description": "When true, rebuild on change.",
1222 "default": true
1223 },
1224 "hmrWarning": {
1225 "type": "boolean",
1226 "description": "When true, show a warning when the --hmr option is enabled.",
1227 "default": true
1228 },
1229 "servePathDefaultWarning": {
1230 "type": "boolean",
1231 "description": "When true, show a warning when deploy-url/base-href use unsupported serve path values.",
1232 "default": true
1233 },
1234 "optimization": {
1235 "description": "Enable optimization of the build output.",
1236 "oneOf": [
1237 {
1238 "type": "object",
1239 "properties": {
1240 "scripts": {
1241 "type": "boolean",
1242 "description": "When true, enable optimization of the scripts output.",
1243 "default": true
1244 },
1245 "styles": {
1246 "type": "boolean",
1247 "description": "When true, enable optimization of the styles output.",
1248 "default": true
1249 }
1250 },
1251 "additionalProperties": false
1252 },
1253 {
1254 "type": "boolean"
1255 }
1256 ]
1257 },
1258 "aot": {
1259 "type": "boolean",
1260 "description": "Build using ahead-of-time compilation."
1261 },
1262 "sourceMap": {
1263 "description": "When true, output sourcemaps.",
1264 "default": true,
1265 "oneOf": [
1266 {
1267 "type": "object",
1268 "properties": {
1269 "scripts": {
1270 "type": "boolean",
1271 "description": "When true, output sourcemaps for all scripts.",
1272 "default": true
1273 },
1274 "styles": {
1275 "type": "boolean",
1276 "description": "When true, output sourcemaps for all styles.",
1277 "default": true
1278 },
1279 "vendor": {
1280 "type": "boolean",
1281 "description": "When true, resolve vendor packages sourcemaps.",
1282 "default": false
1283 }
1284 },
1285 "additionalProperties": false
1286 },
1287 {
1288 "type": "boolean"
1289 }
1290 ]
1291 },
1292 "vendorSourceMap": {
1293 "type": "boolean",
1294 "description": "When true, resolve vendor packages sourcemaps.",
1295 "default": false
1296 },
1297 "evalSourceMap": {
1298 "type": "boolean",
1299 "description": "When true, output in-file eval sourcemaps."
1300 },
1301 "vendorChunk": {
1302 "type": "boolean",
1303 "description": "When true, use a separate bundle containing only vendor libraries."
1304 },
1305 "commonChunk": {
1306 "type": "boolean",
1307 "description": "When true, use a separate bundle containing code used across multiple bundles."
1308 },
1309 "baseHref": {
1310 "type": "string",
1311 "description": "Base url for the application being built."
1312 },
1313 "deployUrl": {
1314 "type": "string",
1315 "description": "URL where files will be deployed."
1316 },
1317 "verbose": {
1318 "type": "boolean",
1319 "description": "When true, add more details to output logging."
1320 },
1321 "progress": {
1322 "type": "boolean",
1323 "description": "When true, log progress to the console while building."
1324 }
1325 },
1326 "additionalProperties": false
1327 },
1328 "extracti18n": {
1329 "description": "Extract i18n target options for Architect.",
1330 "type": "object",
1331 "properties": {
1332 "browserTarget": {
1333 "type": "string",
1334 "description": "Target to extract from."
1335 },
1336 "format": {
1337 "type": "string",
1338 "description": "Output format for the generated file.",
1339 "default": "xlf",
1340 "enum": [
1341 "xmb",
1342 "xlf",
1343 "xlif",
1344 "xliff",
1345 "xlf2",
1346 "xliff2"
1347 ]
1348 },
1349 "i18nFormat": {
1350 "type": "string",
1351 "description": "Output format for the generated file.",
1352 "default": "xlf",
1353 "x-deprecated": "Use 'format' option instead.",
1354 "enum": [
1355 "xmb",
1356 "xlf",
1357 "xlif",
1358 "xliff",
1359 "xlf2",
1360 "xliff2"
1361 ]
1362 },
1363 "i18nLocale": {
1364 "type": "string",
1365 "description": "Specifies the source language of the application.",
1366 "x-deprecated": "Use 'i18n' project level sub-option 'sourceLocale' instead."
1367 },
1368 "progress": {
1369 "type": "boolean",
1370 "description": "Log progress to the console.",
1371 "default": true
1372 },
1373 "outputPath": {
1374 "type": "string",
1375 "description": "Path where output will be placed."
1376 },
1377 "outFile": {
1378 "type": "string",
1379 "description": "Name of the file to output."
1380 }
1381 },
1382 "additionalProperties": false
1383 },
1384 "karma": {
1385 "description": "Karma target options for Architect.",
1386 "type": "object",
1387 "properties": {
1388 "main": {
1389 "type": "string",
1390 "description": "The name of the main entry-point file."
1391 },
1392 "tsConfig": {
1393 "type": "string",
1394 "description": "The name of the TypeScript configuration file."
1395 },
1396 "karmaConfig": {
1397 "type": "string",
1398 "description": "The name of the Karma configuration file."
1399 },
1400 "polyfills": {
1401 "type": "string",
1402 "description": "The name of the polyfills file."
1403 },
1404 "assets": {
1405 "type": "array",
1406 "description": "List of static application assets.",
1407 "default": [],
1408 "items": {
1409 "$ref": "#/definitions/targetOptions/definitions/karma/definitions/assetPattern"
1410 }
1411 },
1412 "scripts": {
1413 "description": "Global scripts to be included in the build.",
1414 "type": "array",
1415 "default": [],
1416 "items": {
1417 "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
1418 }
1419 },
1420 "styles": {
1421 "description": "Global styles to be included in the build.",
1422 "type": "array",
1423 "default": [],
1424 "items": {
1425 "$ref": "#/definitions/targetOptions/definitions/karma/definitions/extraEntryPoint"
1426 }
1427 },
1428 "stylePreprocessorOptions": {
1429 "description": "Options to pass to style preprocessors",
1430 "type": "object",
1431 "properties": {
1432 "includePaths": {
1433 "description": "Paths to include. Paths will be resolved to project root.",
1434 "type": "array",
1435 "items": {
1436 "type": "string"
1437 },
1438 "default": []
1439 }
1440 },
1441 "additionalProperties": false
1442 },
1443 "environment": {
1444 "type": "string",
1445 "description": "Defines the build environment."
1446 },
1447 "sourceMap": {
1448 "description": "Output sourcemaps.",
1449 "default": true,
1450 "oneOf": [
1451 {
1452 "type": "object",
1453 "properties": {
1454 "scripts": {
1455 "type": "boolean",
1456 "description": "Output sourcemaps for all scripts.",
1457 "default": true
1458 },
1459 "styles": {
1460 "type": "boolean",
1461 "description": "Output sourcemaps for all styles.",
1462 "default": true
1463 },
1464 "vendor": {
1465 "type": "boolean",
1466 "description": "Resolve vendor packages sourcemaps.",
1467 "default": false
1468 }
1469 },
1470 "additionalProperties": false
1471 },
1472 {
1473 "type": "boolean"
1474 }
1475 ]
1476 },
1477 "progress": {
1478 "type": "boolean",
1479 "description": "Log progress to the console while building.",
1480 "default": true
1481 },
1482 "watch": {
1483 "type": "boolean",
1484 "description": "Run build when files change.",
1485 "default": true
1486 },
1487 "poll": {
1488 "type": "number",
1489 "description": "Enable and define the file watching poll time period in milliseconds."
1490 },
1491 "preserveSymlinks": {
1492 "type": "boolean",
1493 "description": "Do not use the real path when resolving modules.",
1494 "default": false
1495 },
1496 "browsers": {
1497 "type": "string",
1498 "description": "Override which browsers tests are run against."
1499 },
1500 "codeCoverage": {
1501 "type": "boolean",
1502 "description": "Output a code coverage report.",
1503 "default": false
1504 },
1505 "codeCoverageExclude": {
1506 "type": "array",
1507 "description": "Globs to exclude from code coverage.",
1508 "items": {
1509 "type": "string"
1510 },
1511 "default": []
1512 },
1513 "fileReplacements": {
1514 "description": "Replace files with other files in the build.",
1515 "type": "array",
1516 "items": {
1517 "oneOf": [
1518 {
1519 "type": "object",
1520 "properties": {
1521 "src": {
1522 "type": "string"
1523 },
1524 "replaceWith": {
1525 "type": "string"
1526 }
1527 },
1528 "additionalProperties": false,
1529 "required": [
1530 "src",
1531 "replaceWith"
1532 ]
1533 },
1534 {
1535 "type": "object",
1536 "properties": {
1537 "replace": {
1538 "type": "string"
1539 },
1540 "with": {
1541 "type": "string"
1542 }
1543 },
1544 "additionalProperties": false,
1545 "required": [
1546 "replace",
1547 "with"
1548 ]
1549 }
1550 ]
1551 },
1552 "default": []
1553 },
1554 "reporters": {
1555 "type": "array",
1556 "description": "Karma reporters to use. Directly passed to the karma runner.",
1557 "items": {
1558 "type": "string"
1559 }
1560 },
1561 "webWorkerTsConfig": {
1562 "type": "string",
1563 "description": "TypeScript configuration for Web Worker modules."
1564 }
1565 },
1566 "additionalProperties": false,
1567 "definitions": {
1568 "assetPattern": {
1569 "oneOf": [
1570 {
1571 "type": "object",
1572 "properties": {
1573 "glob": {
1574 "type": "string",
1575 "description": "The pattern to match."
1576 },
1577 "input": {
1578 "type": "string",
1579 "description": "The input path dir in which to apply 'glob'. Defaults to the project root."
1580 },
1581 "output": {
1582 "type": "string",
1583 "description": "Absolute path within the output."
1584 },
1585 "ignore": {
1586 "description": "An array of globs to ignore.",
1587 "type": "array",
1588 "items": {
1589 "type": "string"
1590 }
1591 }
1592 },
1593 "additionalProperties": false,
1594 "required": [
1595 "glob",
1596 "input",
1597 "output"
1598 ]
1599 },
1600 {
1601 "type": "string",
1602 "description": "The file to include."
1603 }
1604 ]
1605 },
1606 "extraEntryPoint": {
1607 "oneOf": [
1608 {
1609 "type": "object",
1610 "properties": {
1611 "input": {
1612 "type": "string",
1613 "description": "The file to include."
1614 },
1615 "bundleName": {
1616 "type": "string",
1617 "description": "The bundle name for this extra entry point."
1618 },
1619 "lazy": {
1620 "type": "boolean",
1621 "description": "If the bundle will be lazy loaded.",
1622 "default": false
1623 },
1624 "inject": {
1625 "type": "boolean",
1626 "description": "If the bundle will be referenced in the HTML file.",
1627 "default": true
1628 }
1629 },
1630 "additionalProperties": false,
1631 "required": [
1632 "input"
1633 ]
1634 },
1635 {
1636 "type": "string",
1637 "description": "The file to include."
1638 }
1639 ]
1640 }
1641 }
1642 },
1643 "protractor": {
1644 "description": "Protractor target options for Architect.",
1645 "type": "object",
1646 "properties": {
1647 "protractorConfig": {
1648 "type": "string",
1649 "description": "The name of the Protractor configuration file."
1650 },
1651 "devServerTarget": {
1652 "type": "string",
1653 "description": "Dev server target to run tests against."
1654 },
1655 "grep": {
1656 "type": "string",
1657 "description": "Execute specs whose names match the pattern, which is internally compiled to a RegExp."
1658 },
1659 "invertGrep": {
1660 "type": "boolean",
1661 "description": "Invert the selection specified by the 'grep' option.",
1662 "default": false
1663 },
1664 "specs": {
1665 "type": "array",
1666 "description": "Override specs in the protractor config.",
1667 "default": [],
1668 "items": {
1669 "type": "string",
1670 "description": "Spec name."
1671 }
1672 },
1673 "suite": {
1674 "type": "string",
1675 "description": "Override suite in the protractor config."
1676 },
1677 "elementExplorer": {
1678 "type": "boolean",
1679 "description": "Start Protractor's Element Explorer for debugging.",
1680 "default": false
1681 },
1682 "webdriverUpdate": {
1683 "type": "boolean",
1684 "description": "Try to update webdriver.",
1685 "default": true
1686 },
1687 "serve": {
1688 "type": "boolean",
1689 "description": "Compile and Serve the app.",
1690 "default": true
1691 },
1692 "port": {
1693 "type": "number",
1694 "description": "The port to use to serve the application."
1695 },
1696 "host": {
1697 "type": "string",
1698 "description": "Host to listen on.",
1699 "default": "localhost"
1700 },
1701 "baseUrl": {
1702 "type": "string",
1703 "description": "Base URL for protractor to connect to."
1704 }
1705 },
1706 "additionalProperties": false
1707 },
1708 "server": {
1709 "title": "Angular Webpack Architect Builder Schema",
1710 "properties": {
1711 "main": {
1712 "type": "string",
1713 "description": "The name of the main entry-point file."
1714 },
1715 "tsConfig": {
1716 "type": "string",
1717 "default": "tsconfig.app.json",
1718 "description": "The name of the TypeScript configuration file."
1719 },
1720 "stylePreprocessorOptions": {
1721 "description": "Options to pass to style preprocessors",
1722 "type": "object",
1723 "properties": {
1724 "includePaths": {
1725 "description": "Paths to include. Paths will be resolved to project root.",
1726 "type": "array",
1727 "items": {
1728 "type": "string"
1729 },
1730 "default": []
1731 }
1732 },
1733 "additionalProperties": false
1734 },
1735 "optimization": {
1736 "description": "Enables optimization of the build output.",
1737 "oneOf": [
1738 {
1739 "type": "object",
1740 "properties": {
1741 "scripts": {
1742 "type": "boolean",
1743 "description": "Enables optimization of the scripts output.",
1744 "default": true
1745 },
1746 "styles": {
1747 "type": "boolean",
1748 "description": "Enables optimization of the styles output.",
1749 "default": true
1750 }
1751 },
1752 "additionalProperties": false
1753 },
1754 {
1755 "type": "boolean"
1756 }
1757 ]
1758 },
1759 "fileReplacements": {
1760 "description": "Replace files with other files in the build.",
1761 "type": "array",
1762 "items": {
1763 "$ref": "#/definitions/targetOptions/definitions/server/definitions/fileReplacement"
1764 },
1765 "default": []
1766 },
1767 "outputPath": {
1768 "type": "string",
1769 "description": "Path where output will be placed."
1770 },
1771 "resourcesOutputPath": {
1772 "type": "string",
1773 "description": "The path where style resources will be placed, relative to outputPath."
1774 },
1775 "sourceMap": {
1776 "description": "Output sourcemaps.",
1777 "default": true,
1778 "oneOf": [
1779 {
1780 "type": "object",
1781 "properties": {
1782 "scripts": {
1783 "type": "boolean",
1784 "description": "Output sourcemaps for all scripts.",
1785 "default": true
1786 },
1787 "styles": {
1788 "type": "boolean",
1789 "description": "Output sourcemaps for all styles.",
1790 "default": true
1791 },
1792 "hidden": {
1793 "type": "boolean",
1794 "description": "Output sourcemaps used for error reporting tools.",
1795 "default": false
1796 },
1797 "vendor": {
1798 "type": "boolean",
1799 "description": "Resolve vendor packages sourcemaps.",
1800 "default": false
1801 }
1802 },
1803 "additionalProperties": false
1804 },
1805 {
1806 "type": "boolean"
1807 }
1808 ]
1809 },
1810 "vendorSourceMap": {
1811 "type": "boolean",
1812 "description": "Resolve vendor packages sourcemaps.",
1813 "default": false
1814 },
1815 "evalSourceMap": {
1816 "type": "boolean",
1817 "description": "Output in-file eval sourcemaps.",
1818 "default": false
1819 },
1820 "vendorChunk": {
1821 "type": "boolean",
1822 "description": "Use a separate bundle containing only vendor libraries.",
1823 "default": true
1824 },
1825 "commonChunk": {
1826 "type": "boolean",
1827 "description": "Use a separate bundle containing code used across multiple bundles.",
1828 "default": true
1829 },
1830 "verbose": {
1831 "type": "boolean",
1832 "description": "Adds more details to output logging.",
1833 "default": false
1834 },
1835 "progress": {
1836 "type": "boolean",
1837 "description": "Log progress to the console while building.",
1838 "default": true
1839 },
1840 "localize": {
1841 "$ref": "#/definitions/buildersOptions/localize"
1842 },
1843 "i18nFile": {
1844 "type": "string",
1845 "description": "Localization file to use for i18n.",
1846 "x-deprecated": "Deprecated since 9.0"
1847 },
1848 "i18nFormat": {
1849 "type": "string",
1850 "description": "Format of the localization file specified with --i18n-file.",
1851 "x-deprecated": "Deprecated since 9.0"
1852 },
1853 "i18nLocale": {
1854 "type": "string",
1855 "description": "Locale to use for i18n.",
1856 "x-deprecated": "Deprecated since 9.0"
1857 },
1858 "i18nMissingTranslation": {
1859 "$ref": "#/definitions/buildersOptions/missingTranslation"
1860 },
1861 "outputHashing": {
1862 "type": "string",
1863 "description": "Define the output filename cache-busting hashing mode.",
1864 "default": "none",
1865 "enum": [
1866 "none",
1867 "all",
1868 "media",
1869 "bundles"
1870 ]
1871 },
1872 "deleteOutputPath": {
1873 "type": "boolean",
1874 "description": "delete-output-path",
1875 "default": true
1876 },
1877 "preserveSymlinks": {
1878 "type": "boolean",
1879 "description": "Do not use the real path when resolving modules.",
1880 "default": false
1881 },
1882 "extractLicenses": {
1883 "type": "boolean",
1884 "description": "Extract all licenses in a separate file, in the case of production builds only.",
1885 "default": true
1886 },
1887 "showCircularDependencies": {
1888 "type": "boolean",
1889 "description": "Show circular dependency warnings on builds.",
1890 "default": true
1891 },
1892 "namedChunks": {
1893 "type": "boolean",
1894 "description": "Use file name for lazy loaded chunks.",
1895 "default": true
1896 },
1897 "bundleDependencies": {
1898 "description": "Available on server platform only. Which external dependencies to bundle into the module. By default, all of node_modules will be bundled.",
1899 "default": true,
1900 "oneOf": [
1901 {
1902 "type": "boolean"
1903 },
1904 {
1905 "type": "string",
1906 "enum": [
1907 "none",
1908 "all"
1909 ]
1910 }
1911 ]
1912 },
1913 "externalDependencies": {
1914 "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
1915 "type": "array",
1916 "items": {
1917 "type": "string"
1918 },
1919 "default": []
1920 },
1921 "statsJson": {
1922 "type": "boolean",
1923 "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
1924 "default": false
1925 },
1926 "forkTypeChecker": {
1927 "type": "boolean",
1928 "description": "Run the TypeScript type checker in a forked process.",
1929 "default": true
1930 },
1931 "lazyModules": {
1932 "description": "List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.",
1933 "type": "array",
1934 "items": {
1935 "type": "string"
1936 },
1937 "default": []
1938 }
1939 },
1940 "additionalProperties": false,
1941 "definitions": {
1942 "fileReplacement": {
1943 "oneOf": [
1944 {
1945 "type": "object",
1946 "properties": {
1947 "src": {
1948 "type": "string"
1949 },
1950 "replaceWith": {
1951 "type": "string"
1952 }
1953 },
1954 "additionalProperties": false,
1955 "required": [
1956 "src",
1957 "replaceWith"
1958 ]
1959 },
1960 {
1961 "type": "object",
1962 "properties": {
1963 "replace": {
1964 "type": "string"
1965 },
1966 "with": {
1967 "type": "string"
1968 }
1969 },
1970 "additionalProperties": false,
1971 "required": [
1972 "replace",
1973 "with"
1974 ]
1975 }
1976 ]
1977 }
1978 }
1979 },
1980 "tslint": {
1981 "description": "TSlint target options for Architect.",
1982 "type": "object",
1983 "properties": {
1984 "tslintConfig": {
1985 "type": "string",
1986 "description": "The name of the TSLint configuration file."
1987 },
1988 "tsConfig": {
1989 "description": "The name of the TypeScript configuration file.",
1990 "oneOf": [
1991 { "type": "string" },
1992 {
1993 "type": "array",
1994 "items": {
1995 "type": "string"
1996 }
1997 }
1998 ]
1999 },
2000 "fix": {
2001 "type": "boolean",
2002 "description": "Fixes linting errors (may overwrite linted files).",
2003 "default": false
2004 },
2005 "typeCheck": {
2006 "type": "boolean",
2007 "description": "Controls the type check for linting.",
2008 "default": false
2009 },
2010 "force": {
2011 "type": "boolean",
2012 "description": "Succeeds even if there was linting errors.",
2013 "default": false
2014 },
2015 "silent": {
2016 "type": "boolean",
2017 "description": "Show output text.",
2018 "default": false
2019 },
2020 "format": {
2021 "type": "string",
2022 "description": "Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist, codeFrame).",
2023 "default": "prose",
2024 "anyOf": [
2025 {
2026 "enum": [
2027 "checkstyle",
2028 "codeFrame",
2029 "filesList",
2030 "json",
2031 "junit",
2032 "msbuild",
2033 "pmd",
2034 "prose",
2035 "stylish",
2036 "tap",
2037 "verbose",
2038 "vso"
2039 ]
2040 },
2041 { "minLength": 1 }
2042 ]
2043 },
2044 "exclude": {
2045 "type": "array",
2046 "description": "Files to exclude from linting.",
2047 "default": [],
2048 "items": {
2049 "type": "string"
2050 }
2051 },
2052 "files": {
2053 "type": "array",
2054 "description": "Files to include in linting.",
2055 "default": [],
2056 "items": {
2057 "type": "string"
2058 }
2059 }
2060 },
2061 "additionalProperties": false
2062 }
2063 }
2064 },
2065 "buildersOptions": {
2066 "missingTranslation": {
2067 "type": "string",
2068 "description": "How to handle missing translations for i18n.",
2069 "enum": ["warning", "error", "ignore"],
2070 "default": "warning"
2071 },
2072 "localize": {
2073 "oneOf": [
2074 {
2075 "type": "boolean",
2076 "description": "Translate all locales."
2077 },
2078 {
2079 "type": "array",
2080 "description": "List of locales ID's to translate.",
2081 "minItems": 1,
2082 "items": {
2083 "type": "string",
2084 "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?(-x(-[a-zA-Z0-9]{1,8})+)?$"
2085 }
2086 }
2087 ]
2088 }
2089 }
2090 }
2091}