source: trip-planner-front/node_modules/@angular/cli/lib/config/schema.json@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 105.6 KB
Line 
1{
2 "$schema": "http://json-schema.org/draft-07/schema",
3 "$id": "ng-cli://config/schema.json",
4 "title": "Angular CLI Workspace 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-zA-Z0-9_-]+/)?[a-zA-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": [
53 "npm",
54 "cnpm",
55 "yarn",
56 "pnpm"
57 ]
58 },
59 "warnings": {
60 "description": "Control CLI specific console warnings",
61 "type": "object",
62 "properties": {
63 "versionMismatch": {
64 "description": "Show a warning when the global version is newer than the local one.",
65 "type": "boolean"
66 }
67 }
68 },
69 "analytics": {
70 "type": [
71 "boolean",
72 "string"
73 ],
74 "description": "Share anonymous usage data with the Angular Team at Google."
75 },
76 "analyticsSharing": {
77 "type": "object",
78 "properties": {
79 "tracking": {
80 "description": "Analytics sharing info tracking ID.",
81 "type": "string",
82 "pattern": "^GA-\\d+-\\d+$"
83 },
84 "uuid": {
85 "description": "Analytics sharing info universally unique identifier.",
86 "type": "string"
87 }
88 }
89 }
90 },
91 "additionalProperties": false
92 },
93 "schematicOptions": {
94 "type": "object",
95 "properties": {
96 "@schematics/angular:application": {
97 "$ref": "#/definitions/SchematicsAngularApplicationSchema"
98 },
99 "@schematics/angular:class": {
100 "$ref": "#/definitions/SchematicsAngularClassSchema"
101 },
102 "@schematics/angular:component": {
103 "$ref": "#/definitions/SchematicsAngularComponentSchema"
104 },
105 "@schematics/angular:directive": {
106 "$ref": "#/definitions/SchematicsAngularDirectiveSchema"
107 },
108 "@schematics/angular:enum": {
109 "$ref": "#/definitions/SchematicsAngularEnumSchema"
110 },
111 "@schematics/angular:guard": {
112 "$ref": "#/definitions/SchematicsAngularGuardSchema"
113 },
114 "@schematics/angular:interceptor": {
115 "$ref": "#/definitions/SchematicsAngularInterceptorSchema"
116 },
117 "@schematics/angular:interface": {
118 "$ref": "#/definitions/SchematicsAngularInterfaceSchema"
119 },
120 "@schematics/angular:library": {
121 "$ref": "#/definitions/SchematicsAngularLibrarySchema"
122 },
123 "@schematics/angular:pipe": {
124 "$ref": "#/definitions/SchematicsAngularPipeSchema"
125 },
126 "@schematics/angular:ng-new": {
127 "$ref": "#/definitions/SchematicsAngularNgNewSchema"
128 },
129 "@schematics/angular:resolver": {
130 "$ref": "#/definitions/SchematicsAngularResolverSchema"
131 },
132 "@schematics/angular:service": {
133 "$ref": "#/definitions/SchematicsAngularServiceSchema"
134 },
135 "@schematics/angular:web-worker": {
136 "$ref": "#/definitions/SchematicsAngularWebWorkerSchema"
137 }
138 },
139 "additionalProperties": {
140 "type": "object"
141 }
142 },
143 "fileVersion": {
144 "type": "integer",
145 "description": "File format version",
146 "minimum": 1
147 },
148 "project": {
149 "type": "object",
150 "properties": {
151 "cli": {
152 "$ref": "#/definitions/cliOptions"
153 },
154 "schematics": {
155 "$ref": "#/definitions/schematicOptions"
156 },
157 "prefix": {
158 "type": "string",
159 "format": "html-selector",
160 "description": "The prefix to apply to generated selectors."
161 },
162 "root": {
163 "type": "string",
164 "description": "Root of the project files."
165 },
166 "i18n": {
167 "$ref": "#/definitions/project/definitions/i18n"
168 },
169 "sourceRoot": {
170 "type": "string",
171 "description": "The root of the source files, assets and index.html file structure."
172 },
173 "projectType": {
174 "type": "string",
175 "description": "Project type.",
176 "enum": [
177 "application",
178 "library"
179 ]
180 },
181 "architect": {
182 "type": "object",
183 "additionalProperties": {
184 "$ref": "#/definitions/project/definitions/target"
185 }
186 },
187 "targets": {
188 "type": "object",
189 "additionalProperties": {
190 "$ref": "#/definitions/project/definitions/target"
191 }
192 }
193 },
194 "required": [
195 "root",
196 "projectType"
197 ],
198 "anyOf": [
199 {
200 "required": [
201 "architect"
202 ],
203 "not": {
204 "required": [
205 "targets"
206 ]
207 }
208 },
209 {
210 "required": [
211 "targets"
212 ],
213 "not": {
214 "required": [
215 "architect"
216 ]
217 }
218 },
219 {
220 "not": {
221 "required": [
222 "targets",
223 "architect"
224 ]
225 }
226 }
227 ],
228 "additionalProperties": false,
229 "patternProperties": {
230 "^[a-z]{1,3}-.*": {}
231 },
232 "definitions": {
233 "i18n": {
234 "description": "Project i18n options",
235 "type": "object",
236 "properties": {
237 "sourceLocale": {
238 "oneOf": [
239 {
240 "type": "string",
241 "description": "Specifies the source locale of the application.",
242 "default": "en-US",
243 "$comment": "IETF BCP 47 language tag (simplified)",
244 "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})+)?$"
245 },
246 {
247 "type": "object",
248 "description": "Localization options to use for the source locale",
249 "properties": {
250 "code": {
251 "type": "string",
252 "description": "Specifies the locale code of the source locale",
253 "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})+)?$"
254 },
255 "baseHref": {
256 "type": "string",
257 "description": "HTML base HREF to use for the locale (defaults to the locale code)"
258 }
259 },
260 "additionalProperties": false
261 }
262 ]
263 },
264 "locales": {
265 "type": "object",
266 "additionalProperties": false,
267 "patternProperties": {
268 "^[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})+)?$": {
269 "oneOf": [
270 {
271 "type": "string",
272 "description": "Localization file to use for i18n"
273 },
274 {
275 "type": "array",
276 "description": "Localization files to use for i18n",
277 "items": {
278 "type": "string",
279 "uniqueItems": true
280 }
281 },
282 {
283 "type": "object",
284 "description": "Localization options to use for the locale",
285 "properties": {
286 "translation": {
287 "oneOf": [
288 {
289 "type": "string",
290 "description": "Localization file to use for i18n"
291 },
292 {
293 "type": "array",
294 "description": "Localization files to use for i18n",
295 "items": {
296 "type": "string",
297 "uniqueItems": true
298 }
299 }
300 ]
301 },
302 "baseHref": {
303 "type": "string",
304 "description": "HTML base HREF to use for the locale (defaults to the locale code)"
305 }
306 },
307 "additionalProperties": false
308 }
309 ]
310 }
311 }
312 }
313 },
314 "additionalProperties": false
315 },
316 "target": {
317 "oneOf": [
318 {
319 "$comment": "Extendable target with custom builder",
320 "type": "object",
321 "properties": {
322 "builder": {
323 "type": "string",
324 "description": "The builder used for this package.",
325 "not": {
326 "enum": [
327 "@angular-devkit/build-angular:app-shell",
328 "@angular-devkit/build-angular:browser",
329 "@angular-devkit/build-angular:dev-server",
330 "@angular-devkit/build-angular:extract-i18n",
331 "@angular-devkit/build-angular:karma",
332 "@angular-devkit/build-angular:protractor",
333 "@angular-devkit/build-angular:server",
334 "@angular-devkit/build-angular:tslint",
335 "@angular-devkit/build-angular:ng-packagr"
336 ]
337 }
338 },
339 "defaultConfiguration": {
340 "type": "string",
341 "description": "A default named configuration to use when a target configuration is not provided."
342 },
343 "options": {
344 "type": "object"
345 },
346 "configurations": {
347 "type": "object",
348 "description": "A map of alternative target options.",
349 "additionalProperties": {
350 "type": "object"
351 }
352 }
353 },
354 "additionalProperties": false,
355 "required": [
356 "builder"
357 ]
358 },
359 {
360 "type": "object",
361 "additionalProperties": false,
362 "properties": {
363 "builder": {
364 "const": "@angular-devkit/build-angular:app-shell"
365 },
366 "defaultConfiguration": {
367 "type": "string",
368 "description": "A default named configuration to use when a target configuration is not provided."
369 },
370 "options": {
371 "$ref": "#/definitions/AngularDevkitBuildAngularAppShellSchema"
372 },
373 "configurations": {
374 "type": "object",
375 "additionalProperties": {
376 "$ref": "#/definitions/AngularDevkitBuildAngularAppShellSchema"
377 }
378 }
379 }
380 },
381 {
382 "type": "object",
383 "additionalProperties": false,
384 "properties": {
385 "builder": {
386 "const": "@angular-devkit/build-angular:browser"
387 },
388 "defaultConfiguration": {
389 "type": "string",
390 "description": "A default named configuration to use when a target configuration is not provided."
391 },
392 "options": {
393 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema"
394 },
395 "configurations": {
396 "type": "object",
397 "additionalProperties": {
398 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema"
399 }
400 }
401 }
402 },
403 {
404 "type": "object",
405 "additionalProperties": false,
406 "properties": {
407 "builder": {
408 "const": "@angular-devkit/build-angular:dev-server"
409 },
410 "defaultConfiguration": {
411 "type": "string",
412 "description": "A default named configuration to use when a target configuration is not provided."
413 },
414 "options": {
415 "$ref": "#/definitions/AngularDevkitBuildAngularDevServerSchema"
416 },
417 "configurations": {
418 "type": "object",
419 "additionalProperties": {
420 "$ref": "#/definitions/AngularDevkitBuildAngularDevServerSchema"
421 }
422 }
423 }
424 },
425 {
426 "type": "object",
427 "additionalProperties": false,
428 "properties": {
429 "builder": {
430 "const": "@angular-devkit/build-angular:extract-i18n"
431 },
432 "defaultConfiguration": {
433 "type": "string",
434 "description": "A default named configuration to use when a target configuration is not provided."
435 },
436 "options": {
437 "$ref": "#/definitions/AngularDevkitBuildAngularExtractI18nSchema"
438 },
439 "configurations": {
440 "type": "object",
441 "additionalProperties": {
442 "$ref": "#/definitions/AngularDevkitBuildAngularExtractI18nSchema"
443 }
444 }
445 }
446 },
447 {
448 "type": "object",
449 "additionalProperties": false,
450 "properties": {
451 "builder": {
452 "const": "@angular-devkit/build-angular:karma"
453 },
454 "defaultConfiguration": {
455 "type": "string",
456 "description": "A default named configuration to use when a target configuration is not provided."
457 },
458 "options": {
459 "$ref": "#/definitions/AngularDevkitBuildAngularKarmaSchema"
460 },
461 "configurations": {
462 "type": "object",
463 "additionalProperties": {
464 "$ref": "#/definitions/AngularDevkitBuildAngularKarmaSchema"
465 }
466 }
467 }
468 },
469 {
470 "type": "object",
471 "additionalProperties": false,
472 "properties": {
473 "builder": {
474 "const": "@angular-devkit/build-angular:protractor"
475 },
476 "defaultConfiguration": {
477 "type": "string",
478 "description": "A default named configuration to use when a target configuration is not provided."
479 },
480 "options": {
481 "$ref": "#/definitions/AngularDevkitBuildAngularProtractorSchema"
482 },
483 "configurations": {
484 "type": "object",
485 "additionalProperties": {
486 "$ref": "#/definitions/AngularDevkitBuildAngularProtractorSchema"
487 }
488 }
489 }
490 },
491 {
492 "type": "object",
493 "additionalProperties": false,
494 "properties": {
495 "builder": {
496 "const": "@angular-devkit/build-angular:server"
497 },
498 "defaultConfiguration": {
499 "type": "string",
500 "description": "A default named configuration to use when a target configuration is not provided."
501 },
502 "options": {
503 "$ref": "#/definitions/AngularDevkitBuildAngularServerSchema"
504 },
505 "configurations": {
506 "type": "object",
507 "additionalProperties": {
508 "$ref": "#/definitions/AngularDevkitBuildAngularServerSchema"
509 }
510 }
511 }
512 },
513 {
514 "type": "object",
515 "additionalProperties": false,
516 "properties": {
517 "builder": {
518 "const": "@angular-devkit/build-angular:tslint"
519 },
520 "defaultConfiguration": {
521 "type": "string",
522 "description": "A default named configuration to use when a target configuration is not provided."
523 },
524 "options": {
525 "$ref": "#/definitions/AngularDevkitBuildAngularTslintSchema"
526 },
527 "configurations": {
528 "type": "object",
529 "additionalProperties": {
530 "$ref": "#/definitions/AngularDevkitBuildAngularTslintSchema"
531 }
532 }
533 }
534 },
535 {
536 "type": "object",
537 "additionalProperties": false,
538 "properties": {
539 "builder": {
540 "const": "@angular-devkit/build-angular:ng-packagr"
541 },
542 "defaultConfiguration": {
543 "type": "string",
544 "description": "A default named configuration to use when a target configuration is not provided."
545 },
546 "options": {
547 "$ref": "#/definitions/AngularDevkitBuildAngularNgPackagrSchema"
548 },
549 "configurations": {
550 "type": "object",
551 "additionalProperties": {
552 "$ref": "#/definitions/AngularDevkitBuildAngularNgPackagrSchema"
553 }
554 }
555 }
556 }
557 ]
558 }
559 }
560 },
561 "global": {
562 "type": "object",
563 "properties": {
564 "$schema": {
565 "type": "string",
566 "format": "uri"
567 },
568 "version": {
569 "$ref": "#/definitions/fileVersion"
570 },
571 "cli": {
572 "$ref": "#/definitions/cliOptions"
573 },
574 "schematics": {
575 "$ref": "#/definitions/schematicOptions"
576 }
577 },
578 "required": [
579 "version"
580 ]
581 },
582 "SchematicsAngularApplicationSchema": {
583 "title": "Angular Application Options Schema",
584 "type": "object",
585 "description": "Generates a new basic app definition in the \"projects\" subfolder of the workspace.",
586 "additionalProperties": false,
587 "properties": {
588 "projectRoot": {
589 "description": "The root directory of the new app.",
590 "type": "string",
591 "visible": false
592 },
593 "name": {
594 "description": "The name of the new app.",
595 "type": "string",
596 "$default": {
597 "$source": "argv",
598 "index": 0
599 },
600 "x-prompt": "What name would you like to use for the application?"
601 },
602 "inlineStyle": {
603 "description": "Include styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.",
604 "type": "boolean",
605 "alias": "s",
606 "x-user-analytics": 9
607 },
608 "inlineTemplate": {
609 "description": "Include template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file. ",
610 "type": "boolean",
611 "alias": "t",
612 "x-user-analytics": 10
613 },
614 "viewEncapsulation": {
615 "description": "The view encapsulation strategy to use in the new application.",
616 "enum": [
617 "Emulated",
618 "None",
619 "ShadowDom"
620 ],
621 "type": "string",
622 "x-user-analytics": 11
623 },
624 "routing": {
625 "type": "boolean",
626 "description": "Create a routing NgModule.",
627 "default": false,
628 "x-prompt": "Would you like to add Angular routing?",
629 "x-user-analytics": 17
630 },
631 "prefix": {
632 "type": "string",
633 "format": "html-selector",
634 "description": "A prefix to apply to generated selectors.",
635 "default": "app",
636 "alias": "p"
637 },
638 "style": {
639 "description": "The file extension or preprocessor to use for style files.",
640 "type": "string",
641 "default": "css",
642 "enum": [
643 "css",
644 "scss",
645 "sass",
646 "less"
647 ],
648 "x-prompt": {
649 "message": "Which stylesheet format would you like to use?",
650 "type": "list",
651 "items": [
652 {
653 "value": "css",
654 "label": "CSS"
655 },
656 {
657 "value": "scss",
658 "label": "SCSS [ https://sass-lang.com/documentation/syntax#scss ]"
659 },
660 {
661 "value": "sass",
662 "label": "Sass [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]"
663 },
664 {
665 "value": "less",
666 "label": "Less [ http://lesscss.org ]"
667 }
668 ]
669 },
670 "x-user-analytics": 5
671 },
672 "skipTests": {
673 "description": "Do not create \"spec.ts\" test files for the application.",
674 "type": "boolean",
675 "default": false,
676 "alias": "S",
677 "x-user-analytics": 12
678 },
679 "skipPackageJson": {
680 "type": "boolean",
681 "default": false,
682 "description": "Do not add dependencies to the \"package.json\" file."
683 },
684 "minimal": {
685 "description": "Create a bare-bones project without any testing frameworks. (Use for learning purposes only.)",
686 "type": "boolean",
687 "default": false,
688 "x-user-analytics": 14
689 },
690 "skipInstall": {
691 "description": "Skip installing dependency packages.",
692 "type": "boolean",
693 "default": false
694 },
695 "lintFix": {
696 "type": "boolean",
697 "description": "Apply lint fixes after generating the application.",
698 "x-user-analytics": 15,
699 "x-deprecated": "Use \"ng lint --fix\" directly instead."
700 },
701 "strict": {
702 "description": "Creates an application with stricter bundle budgets settings.",
703 "type": "boolean",
704 "default": true,
705 "x-user-analytics": 7
706 },
707 "legacyBrowsers": {
708 "type": "boolean",
709 "description": "Add support for legacy browsers like Internet Explorer using differential loading.",
710 "default": false,
711 "x-deprecated": "Legacy browsers support is deprecated since version 12. For more information, see https://angular.io/guide/browser-support"
712 }
713 }
714 },
715 "SchematicsAngularClassSchema": {
716 "title": "Angular Class Options Schema",
717 "type": "object",
718 "description": "Creates a new, generic class definition in the given or default project.",
719 "additionalProperties": false,
720 "properties": {
721 "name": {
722 "type": "string",
723 "description": "The name of the new class.",
724 "$default": {
725 "$source": "argv",
726 "index": 0
727 },
728 "x-prompt": "What name would you like to use for the class?"
729 },
730 "path": {
731 "type": "string",
732 "format": "path",
733 "description": "The path at which to create the class, relative to the workspace root.",
734 "visible": false
735 },
736 "project": {
737 "type": "string",
738 "description": "The name of the project.",
739 "$default": {
740 "$source": "projectName"
741 }
742 },
743 "skipTests": {
744 "type": "boolean",
745 "description": "Do not create \"spec.ts\" test files for the new class.",
746 "default": false,
747 "x-user-analytics": 12
748 },
749 "type": {
750 "type": "string",
751 "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
752 "default": ""
753 },
754 "lintFix": {
755 "type": "boolean",
756 "default": false,
757 "description": "Apply lint fixes after generating the class.",
758 "x-user-analytics": 15,
759 "x-deprecated": "Use \"ng lint --fix\" directly instead."
760 }
761 }
762 },
763 "SchematicsAngularComponentSchema": {
764 "title": "Angular Component Options Schema",
765 "type": "object",
766 "description": "Creates a new, generic component definition in the given or default project.",
767 "additionalProperties": false,
768 "properties": {
769 "path": {
770 "type": "string",
771 "format": "path",
772 "description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
773 "visible": false
774 },
775 "project": {
776 "type": "string",
777 "description": "The name of the project.",
778 "$default": {
779 "$source": "projectName"
780 }
781 },
782 "name": {
783 "type": "string",
784 "description": "The name of the component.",
785 "$default": {
786 "$source": "argv",
787 "index": 0
788 },
789 "x-prompt": "What name would you like to use for the component?"
790 },
791 "displayBlock": {
792 "description": "Specifies if the style will contain `:host { display: block; }`.",
793 "type": "boolean",
794 "default": false,
795 "alias": "b"
796 },
797 "inlineStyle": {
798 "description": "Include styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.",
799 "type": "boolean",
800 "default": false,
801 "alias": "s",
802 "x-user-analytics": 9
803 },
804 "inlineTemplate": {
805 "description": "Include template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.",
806 "type": "boolean",
807 "default": false,
808 "alias": "t",
809 "x-user-analytics": 10
810 },
811 "viewEncapsulation": {
812 "description": "The view encapsulation strategy to use in the new component.",
813 "enum": [
814 "Emulated",
815 "None",
816 "ShadowDom"
817 ],
818 "type": "string",
819 "alias": "v",
820 "x-user-analytics": 11
821 },
822 "changeDetection": {
823 "description": "The change detection strategy to use in the new component.",
824 "enum": [
825 "Default",
826 "OnPush"
827 ],
828 "type": "string",
829 "default": "Default",
830 "alias": "c"
831 },
832 "prefix": {
833 "type": "string",
834 "description": "The prefix to apply to the generated component selector.",
835 "alias": "p",
836 "oneOf": [
837 {
838 "maxLength": 0
839 },
840 {
841 "minLength": 1,
842 "format": "html-selector"
843 }
844 ]
845 },
846 "style": {
847 "description": "The file extension or preprocessor to use for style files, or 'none' to skip generating the style file.",
848 "type": "string",
849 "default": "css",
850 "enum": [
851 "css",
852 "scss",
853 "sass",
854 "less",
855 "none"
856 ],
857 "x-user-analytics": 5
858 },
859 "type": {
860 "type": "string",
861 "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
862 "default": "Component"
863 },
864 "skipTests": {
865 "type": "boolean",
866 "description": "Do not create \"spec.ts\" test files for the new component.",
867 "default": false,
868 "x-user-analytics": 12
869 },
870 "flat": {
871 "type": "boolean",
872 "description": "Create the new files at the top level of the current project.",
873 "default": false
874 },
875 "skipImport": {
876 "type": "boolean",
877 "description": "Do not import this component into the owning NgModule.",
878 "default": false,
879 "x-user-analytics": 18
880 },
881 "selector": {
882 "type": "string",
883 "format": "html-selector",
884 "description": "The HTML selector to use for this component."
885 },
886 "skipSelector": {
887 "type": "boolean",
888 "default": false,
889 "description": "Specifies if the component should have a selector or not."
890 },
891 "module": {
892 "type": "string",
893 "description": "The declaring NgModule.",
894 "alias": "m"
895 },
896 "export": {
897 "type": "boolean",
898 "default": false,
899 "description": "The declaring NgModule exports this component.",
900 "x-user-analytics": 19
901 },
902 "lintFix": {
903 "type": "boolean",
904 "description": "Apply lint fixes after generating the component.",
905 "x-user-analytics": 15,
906 "x-deprecated": "Use \"ng lint --fix\" directly instead."
907 }
908 }
909 },
910 "SchematicsAngularDirectiveSchema": {
911 "title": "Angular Directive Options Schema",
912 "type": "object",
913 "description": "Creates a new, generic directive definition in the given or default project.",
914 "additionalProperties": false,
915 "properties": {
916 "name": {
917 "type": "string",
918 "description": "The name of the new directive.",
919 "$default": {
920 "$source": "argv",
921 "index": 0
922 },
923 "x-prompt": "What name would you like to use for the directive?"
924 },
925 "path": {
926 "type": "string",
927 "format": "path",
928 "description": "The path at which to create the interface that defines the directive, relative to the workspace root.",
929 "visible": false
930 },
931 "project": {
932 "type": "string",
933 "description": "The name of the project.",
934 "$default": {
935 "$source": "projectName"
936 }
937 },
938 "prefix": {
939 "type": "string",
940 "description": "A prefix to apply to generated selectors.",
941 "alias": "p",
942 "oneOf": [
943 {
944 "maxLength": 0
945 },
946 {
947 "minLength": 1,
948 "format": "html-selector"
949 }
950 ]
951 },
952 "skipTests": {
953 "type": "boolean",
954 "description": "Do not create \"spec.ts\" test files for the new class.",
955 "default": false,
956 "x-user-analytics": 12
957 },
958 "skipImport": {
959 "type": "boolean",
960 "description": "Do not import this directive into the owning NgModule.",
961 "default": false,
962 "x-user-analytics": 18
963 },
964 "selector": {
965 "type": "string",
966 "format": "html-selector",
967 "description": "The HTML selector to use for this directive."
968 },
969 "flat": {
970 "type": "boolean",
971 "description": "When true (the default), creates the new files at the top level of the current project.",
972 "default": true
973 },
974 "module": {
975 "type": "string",
976 "description": "The declaring NgModule.",
977 "alias": "m"
978 },
979 "export": {
980 "type": "boolean",
981 "default": false,
982 "description": "The declaring NgModule exports this directive.",
983 "x-user-analytics": 19
984 },
985 "lintFix": {
986 "type": "boolean",
987 "description": "Apply lint fixes after generating the directive.",
988 "x-user-analytics": 15,
989 "x-deprecated": "Use \"ng lint --fix\" directly instead."
990 }
991 }
992 },
993 "SchematicsAngularEnumSchema": {
994 "title": "Angular Enum Options Schema",
995 "type": "object",
996 "description": "Generates a new, generic enum definition for the given or default project.",
997 "additionalProperties": false,
998 "properties": {
999 "name": {
1000 "type": "string",
1001 "description": "The name of the enum.",
1002 "$default": {
1003 "$source": "argv",
1004 "index": 0
1005 },
1006 "x-prompt": "What name would you like to use for the enum?"
1007 },
1008 "path": {
1009 "type": "string",
1010 "format": "path",
1011 "description": "The path at which to create the enum definition, relative to the current workspace.",
1012 "visible": false
1013 },
1014 "project": {
1015 "type": "string",
1016 "description": "The name of the project in which to create the enum. Default is the configured default project for the workspace.",
1017 "$default": {
1018 "$source": "projectName"
1019 }
1020 },
1021 "type": {
1022 "type": "string",
1023 "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
1024 },
1025 "lintFix": {
1026 "type": "boolean",
1027 "description": "Apply lint fixes after generating the enum.",
1028 "x-user-analytics": 15,
1029 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1030 }
1031 }
1032 },
1033 "SchematicsAngularGuardSchema": {
1034 "title": "Angular Guard Options Schema",
1035 "type": "object",
1036 "description": "Generates a new, generic route guard definition in the given or default project.",
1037 "additionalProperties": false,
1038 "properties": {
1039 "name": {
1040 "type": "string",
1041 "description": "The name of the new route guard.",
1042 "$default": {
1043 "$source": "argv",
1044 "index": 0
1045 },
1046 "x-prompt": "What name would you like to use for the guard?"
1047 },
1048 "skipTests": {
1049 "type": "boolean",
1050 "description": "Do not create \"spec.ts\" test files for the new guard.",
1051 "default": false,
1052 "x-user-analytics": 12
1053 },
1054 "flat": {
1055 "type": "boolean",
1056 "description": "When true (the default), creates the new files at the top level of the current project.",
1057 "default": true
1058 },
1059 "path": {
1060 "type": "string",
1061 "format": "path",
1062 "description": "The path at which to create the interface that defines the guard, relative to the current workspace.",
1063 "visible": false
1064 },
1065 "project": {
1066 "type": "string",
1067 "description": "The name of the project.",
1068 "$default": {
1069 "$source": "projectName"
1070 }
1071 },
1072 "lintFix": {
1073 "type": "boolean",
1074 "description": "Apply lint fixes after generating the guard.",
1075 "x-user-analytics": 15,
1076 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1077 },
1078 "implements": {
1079 "type": "array",
1080 "description": "Specifies which interfaces to implement.",
1081 "uniqueItems": true,
1082 "minItems": 1,
1083 "items": {
1084 "enum": [
1085 "CanActivate",
1086 "CanActivateChild",
1087 "CanDeactivate",
1088 "CanLoad"
1089 ],
1090 "type": "string"
1091 },
1092 "default": [
1093 "CanActivate"
1094 ],
1095 "x-prompt": "Which interfaces would you like to implement?"
1096 }
1097 }
1098 },
1099 "SchematicsAngularInterceptorSchema": {
1100 "title": "Angular Interceptor Options Schema",
1101 "type": "object",
1102 "additionalProperties": false,
1103 "description": "Creates a new, generic interceptor definition in the given or default project.",
1104 "properties": {
1105 "name": {
1106 "type": "string",
1107 "description": "The name of the interceptor.",
1108 "$default": {
1109 "$source": "argv",
1110 "index": 0
1111 },
1112 "x-prompt": "What name would you like to use for the interceptor?"
1113 },
1114 "path": {
1115 "type": "string",
1116 "format": "path",
1117 "description": "The path at which to create the interceptor, relative to the workspace root.",
1118 "visible": false
1119 },
1120 "project": {
1121 "type": "string",
1122 "description": "The name of the project.",
1123 "$default": {
1124 "$source": "projectName"
1125 }
1126 },
1127 "flat": {
1128 "type": "boolean",
1129 "default": true,
1130 "description": "When true (the default), creates files at the top level of the project."
1131 },
1132 "skipTests": {
1133 "type": "boolean",
1134 "description": "Do not create \"spec.ts\" test files for the new interceptor.",
1135 "default": false,
1136 "x-user-analytics": 12
1137 },
1138 "lintFix": {
1139 "type": "boolean",
1140 "description": "Apply lint fixes after generating the interceptor.",
1141 "x-user-analytics": 15,
1142 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1143 }
1144 }
1145 },
1146 "SchematicsAngularInterfaceSchema": {
1147 "title": "Angular Interface Options Schema",
1148 "type": "object",
1149 "additionalProperties": false,
1150 "description": "Creates a new, generic interface definition in the given or default project.",
1151 "properties": {
1152 "name": {
1153 "type": "string",
1154 "description": "The name of the interface.",
1155 "$default": {
1156 "$source": "argv",
1157 "index": 0
1158 },
1159 "x-prompt": "What name would you like to use for the interface?"
1160 },
1161 "path": {
1162 "type": "string",
1163 "format": "path",
1164 "description": "The path at which to create the interface, relative to the workspace root.",
1165 "visible": false
1166 },
1167 "project": {
1168 "type": "string",
1169 "description": "The name of the project.",
1170 "$default": {
1171 "$source": "projectName"
1172 }
1173 },
1174 "prefix": {
1175 "type": "string",
1176 "default": "",
1177 "description": "A prefix to apply to generated selectors."
1178 },
1179 "type": {
1180 "type": "string",
1181 "description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\".",
1182 "$default": {
1183 "$source": "argv",
1184 "index": 1
1185 }
1186 },
1187 "lintFix": {
1188 "type": "boolean",
1189 "description": "Apply lint fixes after generating the interface.",
1190 "x-user-analytics": 15,
1191 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1192 }
1193 }
1194 },
1195 "SchematicsAngularLibrarySchema": {
1196 "title": "Library Options Schema",
1197 "type": "object",
1198 "description": "Creates a new, generic library project in the current workspace.",
1199 "long-description": "./library-long.md",
1200 "additionalProperties": false,
1201 "properties": {
1202 "name": {
1203 "type": "string",
1204 "description": "The name of the library.",
1205 "$default": {
1206 "$source": "argv",
1207 "index": 0
1208 },
1209 "x-prompt": "What name would you like to use for the library?"
1210 },
1211 "entryFile": {
1212 "type": "string",
1213 "format": "path",
1214 "description": "The path at which to create the library's public API file, relative to the workspace root.",
1215 "default": "public-api"
1216 },
1217 "prefix": {
1218 "type": "string",
1219 "format": "html-selector",
1220 "description": "A prefix to apply to generated selectors.",
1221 "default": "lib",
1222 "alias": "p"
1223 },
1224 "skipPackageJson": {
1225 "type": "boolean",
1226 "default": false,
1227 "description": "Do not add dependencies to the \"package.json\" file. "
1228 },
1229 "skipInstall": {
1230 "description": "Do not install dependency packages.",
1231 "type": "boolean",
1232 "default": false
1233 },
1234 "skipTsConfig": {
1235 "type": "boolean",
1236 "default": false,
1237 "description": "Do not update \"tsconfig.json\" to add a path mapping for the new library. The path mapping is needed to use the library in an app, but can be disabled here to simplify development."
1238 },
1239 "lintFix": {
1240 "type": "boolean",
1241 "description": "Apply lint fixes after generating the library.",
1242 "x-user-analytics": 15,
1243 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1244 }
1245 }
1246 },
1247 "SchematicsAngularPipeSchema": {
1248 "title": "Angular Pipe Options Schema",
1249 "type": "object",
1250 "additionalProperties": false,
1251 "description": "Creates a new, generic pipe definition in the given or default project.",
1252 "properties": {
1253 "name": {
1254 "type": "string",
1255 "description": "The name of the pipe.",
1256 "$default": {
1257 "$source": "argv",
1258 "index": 0
1259 },
1260 "x-prompt": "What name would you like to use for the pipe?"
1261 },
1262 "path": {
1263 "type": "string",
1264 "format": "path",
1265 "description": "The path at which to create the pipe, relative to the workspace root.",
1266 "visible": false
1267 },
1268 "project": {
1269 "type": "string",
1270 "description": "The name of the project.",
1271 "$default": {
1272 "$source": "projectName"
1273 }
1274 },
1275 "flat": {
1276 "type": "boolean",
1277 "default": true,
1278 "description": "When true (the default) creates files at the top level of the project."
1279 },
1280 "skipTests": {
1281 "type": "boolean",
1282 "description": "Do not create \"spec.ts\" test files for the new pipe.",
1283 "default": false,
1284 "x-user-analytics": 12
1285 },
1286 "skipImport": {
1287 "type": "boolean",
1288 "default": false,
1289 "description": "Do not import this pipe into the owning NgModule.",
1290 "x-user-analytics": 18
1291 },
1292 "module": {
1293 "type": "string",
1294 "description": "The declaring NgModule.",
1295 "alias": "m"
1296 },
1297 "export": {
1298 "type": "boolean",
1299 "default": false,
1300 "description": "The declaring NgModule exports this pipe.",
1301 "x-user-analytics": 19
1302 },
1303 "lintFix": {
1304 "type": "boolean",
1305 "default": false,
1306 "description": "Apply lint fixes after generating the pipe.",
1307 "x-user-analytics": 15,
1308 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1309 }
1310 }
1311 },
1312 "SchematicsAngularNgNewSchema": {
1313 "title": "Angular Ng New Options Schema",
1314 "type": "object",
1315 "description": "Creates a new project by combining the workspace and application schematics.",
1316 "additionalProperties": false,
1317 "properties": {
1318 "directory": {
1319 "type": "string",
1320 "description": "The directory name to create the workspace in."
1321 },
1322 "name": {
1323 "description": "The name of the new workspace and initial project.",
1324 "type": "string",
1325 "format": "html-selector",
1326 "$default": {
1327 "$source": "argv",
1328 "index": 0
1329 },
1330 "x-prompt": "What name would you like to use for the new workspace and initial project?"
1331 },
1332 "skipInstall": {
1333 "description": "Do not install dependency packages.",
1334 "type": "boolean",
1335 "default": false
1336 },
1337 "linkCli": {
1338 "description": "Link the CLI to the global version (internal development only).",
1339 "type": "boolean",
1340 "default": false,
1341 "visible": false
1342 },
1343 "skipGit": {
1344 "description": "Do not initialize a git repository.",
1345 "type": "boolean",
1346 "default": false,
1347 "alias": "g"
1348 },
1349 "commit": {
1350 "description": "Initial git repository commit information.",
1351 "oneOf": [
1352 {
1353 "type": "boolean"
1354 },
1355 {
1356 "type": "object",
1357 "properties": {
1358 "name": {
1359 "type": "string"
1360 },
1361 "email": {
1362 "type": "string",
1363 "format": "email"
1364 },
1365 "message": {
1366 "type": "string"
1367 }
1368 }
1369 }
1370 ],
1371 "default": true
1372 },
1373 "newProjectRoot": {
1374 "description": "The path where new projects will be created, relative to the new workspace root.",
1375 "type": "string",
1376 "default": "projects"
1377 },
1378 "inlineStyle": {
1379 "description": "Include styles inline in the component TS file. By default, an external styles file is created and referenced in the component TypeScript file.",
1380 "type": "boolean",
1381 "alias": "s",
1382 "x-user-analytics": 9
1383 },
1384 "inlineTemplate": {
1385 "description": "Include template inline in the component TS file. By default, an external template file is created and referenced in the component TypeScript file.",
1386 "type": "boolean",
1387 "alias": "t",
1388 "x-user-analytics": 10
1389 },
1390 "viewEncapsulation": {
1391 "description": "The view encapsulation strategy to use in the initial project.",
1392 "enum": [
1393 "Emulated",
1394 "None",
1395 "ShadowDom"
1396 ],
1397 "type": "string",
1398 "x-user-analytics": 11
1399 },
1400 "version": {
1401 "type": "string",
1402 "description": "The version of the Angular CLI to use.",
1403 "visible": false,
1404 "$default": {
1405 "$source": "ng-cli-version"
1406 }
1407 },
1408 "routing": {
1409 "type": "boolean",
1410 "description": "Generate a routing module for the initial project.",
1411 "x-user-analytics": 17
1412 },
1413 "prefix": {
1414 "type": "string",
1415 "format": "html-selector",
1416 "description": "The prefix to apply to generated selectors for the initial project.",
1417 "minLength": 1,
1418 "default": "app",
1419 "alias": "p"
1420 },
1421 "style": {
1422 "description": "The file extension or preprocessor to use for style files.",
1423 "type": "string",
1424 "enum": [
1425 "css",
1426 "scss",
1427 "sass",
1428 "less"
1429 ],
1430 "x-user-analytics": 5
1431 },
1432 "skipTests": {
1433 "description": "Do not generate \"spec.ts\" test files for the new project.",
1434 "type": "boolean",
1435 "default": false,
1436 "alias": "S",
1437 "x-user-analytics": 12
1438 },
1439 "createApplication": {
1440 "description": "Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.",
1441 "type": "boolean",
1442 "default": true
1443 },
1444 "minimal": {
1445 "description": "Create a workspace without any testing frameworks. (Use for learning purposes only.)",
1446 "type": "boolean",
1447 "default": false,
1448 "x-user-analytics": 14
1449 },
1450 "strict": {
1451 "description": "Creates a workspace with stricter type checking and stricter bundle budgets settings. This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/guide/strict-mode",
1452 "type": "boolean",
1453 "default": true,
1454 "x-user-analytics": 7
1455 },
1456 "legacyBrowsers": {
1457 "type": "boolean",
1458 "description": "Add support for legacy browsers like Internet Explorer using differential loading.",
1459 "default": false,
1460 "x-deprecated": "Legacy browsers support is deprecated since version 12. For more information, see https://angular.io/guide/browser-support"
1461 },
1462 "packageManager": {
1463 "description": "The package manager used to install dependencies.",
1464 "type": "string",
1465 "enum": [
1466 "npm",
1467 "yarn",
1468 "pnpm",
1469 "cnpm"
1470 ]
1471 }
1472 }
1473 },
1474 "SchematicsAngularResolverSchema": {
1475 "title": "Angular resolver Options Schema",
1476 "type": "object",
1477 "additionalProperties": false,
1478 "description": "Generates a new, generic resolver definition in the given or default project.",
1479 "properties": {
1480 "name": {
1481 "type": "string",
1482 "description": "The name of the new resolver.",
1483 "$default": {
1484 "$source": "argv",
1485 "index": 0
1486 },
1487 "x-prompt": "What name would you like to use for the resolver?"
1488 },
1489 "skipTests": {
1490 "type": "boolean",
1491 "description": "Do not create \"spec.ts\" test files for the new resolver.",
1492 "default": false,
1493 "x-user-analytics": 12
1494 },
1495 "flat": {
1496 "type": "boolean",
1497 "description": "When true (the default), creates the new files at the top level of the current project.",
1498 "default": true
1499 },
1500 "path": {
1501 "type": "string",
1502 "format": "path",
1503 "description": "The path at which to create the interface that defines the resolver, relative to the current workspace.",
1504 "visible": false
1505 },
1506 "project": {
1507 "type": "string",
1508 "description": "The name of the project.",
1509 "$default": {
1510 "$source": "projectName"
1511 }
1512 }
1513 }
1514 },
1515 "SchematicsAngularServiceSchema": {
1516 "title": "Angular Service Options Schema",
1517 "type": "object",
1518 "additionalProperties": false,
1519 "description": "Creates a new, generic service definition in the given or default project.",
1520 "properties": {
1521 "name": {
1522 "type": "string",
1523 "description": "The name of the service.",
1524 "$default": {
1525 "$source": "argv",
1526 "index": 0
1527 },
1528 "x-prompt": "What name would you like to use for the service?"
1529 },
1530 "path": {
1531 "type": "string",
1532 "format": "path",
1533 "description": "The path at which to create the service, relative to the workspace root.",
1534 "visible": false
1535 },
1536 "project": {
1537 "type": "string",
1538 "description": "The name of the project.",
1539 "$default": {
1540 "$source": "projectName"
1541 }
1542 },
1543 "flat": {
1544 "type": "boolean",
1545 "default": true,
1546 "description": "When true (the default), creates files at the top level of the project."
1547 },
1548 "skipTests": {
1549 "type": "boolean",
1550 "description": "Do not create \"spec.ts\" test files for the new service.",
1551 "default": false,
1552 "x-user-analytics": 12
1553 },
1554 "lintFix": {
1555 "type": "boolean",
1556 "description": "Apply lint fixes after generating the service.",
1557 "x-user-analytics": 15,
1558 "x-deprecated": "Use \"ng lint --fix\" directly instead."
1559 }
1560 }
1561 },
1562 "SchematicsAngularWebWorkerSchema": {
1563 "title": "Angular Web Worker Options Schema",
1564 "type": "object",
1565 "additionalProperties": false,
1566 "description": "Creates a new, generic web worker definition in the given or default project.",
1567 "properties": {
1568 "path": {
1569 "type": "string",
1570 "format": "path",
1571 "description": "The path at which to create the worker file, relative to the current workspace.",
1572 "visible": false
1573 },
1574 "project": {
1575 "type": "string",
1576 "description": "The name of the project.",
1577 "$default": {
1578 "$source": "projectName"
1579 }
1580 },
1581 "target": {
1582 "type": "string",
1583 "description": "The target to apply web worker to.",
1584 "default": "build",
1585 "x-deprecated": "No longer has an effect."
1586 },
1587 "name": {
1588 "type": "string",
1589 "description": "The name of the worker.",
1590 "$default": {
1591 "$source": "argv",
1592 "index": 0
1593 },
1594 "x-prompt": "What name would you like to use for the worker?"
1595 },
1596 "snippet": {
1597 "type": "boolean",
1598 "default": true,
1599 "description": "Add a worker creation snippet in a sibling file of the same name."
1600 }
1601 }
1602 },
1603 "AngularDevkitBuildAngularAppShellSchema": {
1604 "title": "App Shell Target",
1605 "description": "App Shell target options for Build Facade.",
1606 "type": "object",
1607 "properties": {
1608 "browserTarget": {
1609 "type": "string",
1610 "description": "A browser builder target use for rendering the app shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
1611 "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1612 },
1613 "serverTarget": {
1614 "type": "string",
1615 "description": "A server builder target use for rendering the app shell in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
1616 "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1617 },
1618 "appModuleBundle": {
1619 "type": "string",
1620 "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)."
1621 },
1622 "route": {
1623 "type": "string",
1624 "description": "The route to render.",
1625 "default": "/"
1626 },
1627 "inputIndexPath": {
1628 "type": "string",
1629 "description": "The input path for the index.html file. By default uses the output index.html of the browser target."
1630 },
1631 "outputIndexPath": {
1632 "type": "string",
1633 "description": "The output path of the index.html file. By default will overwrite the input file."
1634 }
1635 },
1636 "additionalProperties": false
1637 },
1638 "AngularDevkitBuildAngularBrowserSchema": {
1639 "title": "Webpack browser schema for Build Facade.",
1640 "description": "Browser target options",
1641 "type": "object",
1642 "properties": {
1643 "assets": {
1644 "type": "array",
1645 "description": "List of static application assets.",
1646 "default": [],
1647 "items": {
1648 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema/definitions/assetPattern"
1649 }
1650 },
1651 "main": {
1652 "type": "string",
1653 "description": "The full path for the main entry point to the app, relative to the current workspace."
1654 },
1655 "polyfills": {
1656 "type": "string",
1657 "description": "The full path for the polyfills file, relative to the current workspace."
1658 },
1659 "tsConfig": {
1660 "type": "string",
1661 "description": "The full path for the TypeScript configuration file, relative to the current workspace."
1662 },
1663 "scripts": {
1664 "description": "Global scripts to be included in the build.",
1665 "type": "array",
1666 "default": [],
1667 "items": {
1668 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema/definitions/extraEntryPoint"
1669 }
1670 },
1671 "styles": {
1672 "description": "Global styles to be included in the build.",
1673 "type": "array",
1674 "default": [],
1675 "items": {
1676 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema/definitions/extraEntryPoint"
1677 }
1678 },
1679 "inlineStyleLanguage": {
1680 "description": "The stylesheet language to use for the application's inline component styles.",
1681 "type": "string",
1682 "default": "css",
1683 "enum": [
1684 "css",
1685 "less",
1686 "sass",
1687 "scss"
1688 ]
1689 },
1690 "stylePreprocessorOptions": {
1691 "description": "Options to pass to style preprocessors.",
1692 "type": "object",
1693 "properties": {
1694 "includePaths": {
1695 "description": "Paths to include. Paths will be resolved to workspace root.",
1696 "type": "array",
1697 "items": {
1698 "type": "string"
1699 },
1700 "default": []
1701 }
1702 },
1703 "additionalProperties": false
1704 },
1705 "optimization": {
1706 "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
1707 "x-user-analytics": 16,
1708 "default": true,
1709 "oneOf": [
1710 {
1711 "type": "object",
1712 "properties": {
1713 "scripts": {
1714 "type": "boolean",
1715 "description": "Enables optimization of the scripts output.",
1716 "default": true
1717 },
1718 "styles": {
1719 "description": "Enables optimization of the styles output.",
1720 "default": true,
1721 "oneOf": [
1722 {
1723 "type": "object",
1724 "properties": {
1725 "minify": {
1726 "type": "boolean",
1727 "description": "Minify CSS definitions by removing extraneous whitespace and comments, merging identifiers and minimizing values.",
1728 "default": true
1729 },
1730 "inlineCritical": {
1731 "type": "boolean",
1732 "description": "Extract and inline critical CSS definitions to improve first paint time.",
1733 "default": true
1734 }
1735 },
1736 "additionalProperties": false
1737 },
1738 {
1739 "type": "boolean"
1740 }
1741 ]
1742 },
1743 "fonts": {
1744 "description": "Enables optimization for fonts. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
1745 "default": true,
1746 "oneOf": [
1747 {
1748 "type": "object",
1749 "properties": {
1750 "inline": {
1751 "type": "boolean",
1752 "description": "Reduce render blocking requests by inlining external Google Fonts and Adobe Fonts CSS definitions in the application's HTML index file. This option requires internet access. `HTTPS_PROXY` environment variable can be used to specify a proxy server.",
1753 "default": true
1754 }
1755 },
1756 "additionalProperties": false
1757 },
1758 {
1759 "type": "boolean"
1760 }
1761 ]
1762 }
1763 },
1764 "additionalProperties": false
1765 },
1766 {
1767 "type": "boolean"
1768 }
1769 ]
1770 },
1771 "fileReplacements": {
1772 "description": "Replace compilation source files with other compilation source files in the build.",
1773 "type": "array",
1774 "items": {
1775 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema/definitions/fileReplacement"
1776 },
1777 "default": []
1778 },
1779 "outputPath": {
1780 "type": "string",
1781 "description": "The full path for the new output directory, relative to the current workspace.\n\nBy default, writes output to a folder named dist/ in the current project."
1782 },
1783 "resourcesOutputPath": {
1784 "type": "string",
1785 "description": "The path where style resources will be placed, relative to outputPath.",
1786 "default": ""
1787 },
1788 "aot": {
1789 "type": "boolean",
1790 "description": "Build using Ahead of Time compilation.",
1791 "x-user-analytics": 13,
1792 "default": true
1793 },
1794 "sourceMap": {
1795 "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
1796 "default": false,
1797 "oneOf": [
1798 {
1799 "type": "object",
1800 "properties": {
1801 "scripts": {
1802 "type": "boolean",
1803 "description": "Output source maps for all scripts.",
1804 "default": true
1805 },
1806 "styles": {
1807 "type": "boolean",
1808 "description": "Output source maps for all styles.",
1809 "default": true
1810 },
1811 "hidden": {
1812 "type": "boolean",
1813 "description": "Output source maps used for error reporting tools.",
1814 "default": false
1815 },
1816 "vendor": {
1817 "type": "boolean",
1818 "description": "Resolve vendor packages source maps.",
1819 "default": false
1820 }
1821 },
1822 "additionalProperties": false
1823 },
1824 {
1825 "type": "boolean"
1826 }
1827 ]
1828 },
1829 "vendorChunk": {
1830 "type": "boolean",
1831 "description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.",
1832 "default": false
1833 },
1834 "commonChunk": {
1835 "type": "boolean",
1836 "description": "Generate a seperate bundle containing code used across multiple bundles.",
1837 "default": true
1838 },
1839 "baseHref": {
1840 "type": "string",
1841 "description": "Base url for the application being built."
1842 },
1843 "deployUrl": {
1844 "type": "string",
1845 "description": "URL where files will be deployed."
1846 },
1847 "verbose": {
1848 "type": "boolean",
1849 "description": "Adds more details to output logging.",
1850 "default": false
1851 },
1852 "progress": {
1853 "type": "boolean",
1854 "description": "Log progress to the console while building.",
1855 "default": true
1856 },
1857 "i18nMissingTranslation": {
1858 "type": "string",
1859 "description": "How to handle missing translations for i18n.",
1860 "enum": [
1861 "warning",
1862 "error",
1863 "ignore"
1864 ],
1865 "default": "warning"
1866 },
1867 "localize": {
1868 "description": "Translate the bundles in one or more locales.",
1869 "oneOf": [
1870 {
1871 "type": "boolean",
1872 "description": "Translate all locales."
1873 },
1874 {
1875 "type": "array",
1876 "description": "List of locales ID's to translate.",
1877 "minItems": 1,
1878 "items": {
1879 "type": "string",
1880 "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})+)?$"
1881 }
1882 }
1883 ]
1884 },
1885 "extractCss": {
1886 "type": "boolean",
1887 "description": "Extract CSS from global styles into '.css' files instead of '.js'.",
1888 "default": true,
1889 "x-deprecated": "Deprecated since version 11.0. No longer required to disable CSS extraction for HMR."
1890 },
1891 "watch": {
1892 "type": "boolean",
1893 "description": "Run build when files change.",
1894 "default": false
1895 },
1896 "outputHashing": {
1897 "type": "string",
1898 "description": "Define the output filename cache-busting hashing mode.",
1899 "default": "none",
1900 "enum": [
1901 "none",
1902 "all",
1903 "media",
1904 "bundles"
1905 ]
1906 },
1907 "poll": {
1908 "type": "number",
1909 "description": "Enable and define the file watching poll time period in milliseconds."
1910 },
1911 "deleteOutputPath": {
1912 "type": "boolean",
1913 "description": "Delete the output path before building.",
1914 "default": true
1915 },
1916 "preserveSymlinks": {
1917 "type": "boolean",
1918 "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
1919 },
1920 "extractLicenses": {
1921 "type": "boolean",
1922 "description": "Extract all licenses in a separate file.",
1923 "default": true
1924 },
1925 "showCircularDependencies": {
1926 "type": "boolean",
1927 "description": "Show circular dependency warnings on builds.",
1928 "default": false,
1929 "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
1930 },
1931 "buildOptimizer": {
1932 "type": "boolean",
1933 "description": "Enables '@angular-devkit/build-optimizer' optimizations when using the 'aot' option.",
1934 "default": true
1935 },
1936 "namedChunks": {
1937 "type": "boolean",
1938 "description": "Use file name for lazy loaded chunks.",
1939 "default": false
1940 },
1941 "subresourceIntegrity": {
1942 "type": "boolean",
1943 "description": "Enables the use of subresource integrity validation.",
1944 "default": false
1945 },
1946 "serviceWorker": {
1947 "type": "boolean",
1948 "description": "Generates a service worker config for production builds.",
1949 "default": false
1950 },
1951 "ngswConfigPath": {
1952 "type": "string",
1953 "description": "Path to ngsw-config.json."
1954 },
1955 "index": {
1956 "description": "Configures the generation of the application's HTML index.",
1957 "oneOf": [
1958 {
1959 "type": "string",
1960 "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."
1961 },
1962 {
1963 "type": "object",
1964 "description": "",
1965 "properties": {
1966 "input": {
1967 "type": "string",
1968 "minLength": 1,
1969 "description": "The path of a file to use for the application's generated HTML index."
1970 },
1971 "output": {
1972 "type": "string",
1973 "minLength": 1,
1974 "default": "index.html",
1975 "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."
1976 }
1977 }
1978 }
1979 ]
1980 },
1981 "statsJson": {
1982 "type": "boolean",
1983 "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
1984 "default": false
1985 },
1986 "budgets": {
1987 "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
1988 "type": "array",
1989 "items": {
1990 "$ref": "#/definitions/AngularDevkitBuildAngularBrowserSchema/definitions/budget"
1991 },
1992 "default": []
1993 },
1994 "webWorkerTsConfig": {
1995 "type": "string",
1996 "description": "TypeScript configuration for Web Worker modules."
1997 },
1998 "crossOrigin": {
1999 "type": "string",
2000 "description": "Define the crossorigin attribute setting of elements that provide CORS support.",
2001 "default": "none",
2002 "enum": [
2003 "none",
2004 "anonymous",
2005 "use-credentials"
2006 ]
2007 },
2008 "allowedCommonJsDependencies": {
2009 "description": "A list of CommonJS packages that are allowed to be used without a build time warning.",
2010 "type": "array",
2011 "items": {
2012 "type": "string"
2013 },
2014 "default": []
2015 }
2016 },
2017 "additionalProperties": false,
2018 "definitions": {
2019 "assetPattern": {
2020 "oneOf": [
2021 {
2022 "type": "object",
2023 "properties": {
2024 "followSymlinks": {
2025 "type": "boolean",
2026 "default": false,
2027 "description": "Allow glob patterns to follow symlink directories. This allows subdirectories of the symlink to be searched."
2028 },
2029 "glob": {
2030 "type": "string",
2031 "description": "The pattern to match."
2032 },
2033 "input": {
2034 "type": "string",
2035 "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
2036 },
2037 "ignore": {
2038 "description": "An array of globs to ignore.",
2039 "type": "array",
2040 "items": {
2041 "type": "string"
2042 }
2043 },
2044 "output": {
2045 "type": "string",
2046 "description": "Absolute path within the output."
2047 }
2048 },
2049 "additionalProperties": false
2050 },
2051 {
2052 "type": "string"
2053 }
2054 ]
2055 },
2056 "fileReplacement": {
2057 "oneOf": [
2058 {
2059 "type": "object",
2060 "properties": {
2061 "src": {
2062 "type": "string",
2063 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2064 },
2065 "replaceWith": {
2066 "type": "string",
2067 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2068 }
2069 },
2070 "additionalProperties": false
2071 },
2072 {
2073 "type": "object",
2074 "properties": {
2075 "replace": {
2076 "type": "string",
2077 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2078 },
2079 "with": {
2080 "type": "string",
2081 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2082 }
2083 },
2084 "additionalProperties": false
2085 }
2086 ]
2087 },
2088 "extraEntryPoint": {
2089 "oneOf": [
2090 {
2091 "type": "object",
2092 "properties": {
2093 "input": {
2094 "type": "string",
2095 "description": "The file to include."
2096 },
2097 "bundleName": {
2098 "type": "string",
2099 "pattern": "^[\\w\\-.]*$",
2100 "description": "The bundle name for this extra entry point."
2101 },
2102 "inject": {
2103 "type": "boolean",
2104 "description": "If the bundle will be referenced in the HTML file.",
2105 "default": true
2106 }
2107 },
2108 "additionalProperties": false
2109 },
2110 {
2111 "type": "string",
2112 "description": "The file to include."
2113 }
2114 ]
2115 },
2116 "budget": {
2117 "type": "object",
2118 "properties": {
2119 "type": {
2120 "type": "string",
2121 "description": "The type of budget.",
2122 "enum": [
2123 "all",
2124 "allScript",
2125 "any",
2126 "anyScript",
2127 "anyComponentStyle",
2128 "bundle",
2129 "initial"
2130 ]
2131 },
2132 "name": {
2133 "type": "string",
2134 "description": "The name of the bundle."
2135 },
2136 "baseline": {
2137 "type": "string",
2138 "description": "The baseline size for comparison."
2139 },
2140 "maximumWarning": {
2141 "type": "string",
2142 "description": "The maximum threshold for warning relative to the baseline."
2143 },
2144 "maximumError": {
2145 "type": "string",
2146 "description": "The maximum threshold for error relative to the baseline."
2147 },
2148 "minimumWarning": {
2149 "type": "string",
2150 "description": "The minimum threshold for warning relative to the baseline."
2151 },
2152 "minimumError": {
2153 "type": "string",
2154 "description": "The minimum threshold for error relative to the baseline."
2155 },
2156 "warning": {
2157 "type": "string",
2158 "description": "The threshold for warning relative to the baseline (min & max)."
2159 },
2160 "error": {
2161 "type": "string",
2162 "description": "The threshold for error relative to the baseline (min & max)."
2163 }
2164 },
2165 "additionalProperties": false
2166 }
2167 }
2168 },
2169 "AngularDevkitBuildAngularDevServerSchema": {
2170 "title": "Dev Server Target",
2171 "description": "Dev Server target options for Build Facade.",
2172 "type": "object",
2173 "properties": {
2174 "browserTarget": {
2175 "type": "string",
2176 "description": "A browser builder target to serve in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
2177 "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
2178 },
2179 "port": {
2180 "type": "number",
2181 "description": "Port to listen on.",
2182 "default": 4200
2183 },
2184 "host": {
2185 "type": "string",
2186 "description": "Host to listen on.",
2187 "default": "localhost"
2188 },
2189 "proxyConfig": {
2190 "type": "string",
2191 "description": "Proxy configuration file. For more information, see https://angular.io/guide/build#proxying-to-a-backend-server."
2192 },
2193 "ssl": {
2194 "type": "boolean",
2195 "description": "Serve using HTTPS.",
2196 "default": false
2197 },
2198 "sslKey": {
2199 "type": "string",
2200 "description": "SSL key to use for serving HTTPS."
2201 },
2202 "sslCert": {
2203 "type": "string",
2204 "description": "SSL certificate to use for serving HTTPS."
2205 },
2206 "headers": {
2207 "type": "object",
2208 "description": "Custom HTTP headers to be added to all responses.",
2209 "propertyNames": {
2210 "pattern": "^[-_A-Za-z0-9]+$"
2211 },
2212 "additionalProperties": {
2213 "type": "string"
2214 }
2215 },
2216 "open": {
2217 "type": "boolean",
2218 "description": "Opens the url in default browser.",
2219 "default": false,
2220 "alias": "o"
2221 },
2222 "verbose": {
2223 "type": "boolean",
2224 "description": "Adds more details to output logging."
2225 },
2226 "liveReload": {
2227 "type": "boolean",
2228 "description": "Whether to reload the page on change, using live-reload.",
2229 "default": true
2230 },
2231 "publicHost": {
2232 "type": "string",
2233 "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."
2234 },
2235 "allowedHosts": {
2236 "type": "array",
2237 "description": "List of hosts that are allowed to access the dev server.",
2238 "default": [],
2239 "items": {
2240 "type": "string"
2241 }
2242 },
2243 "servePath": {
2244 "type": "string",
2245 "description": "The pathname where the app will be served."
2246 },
2247 "disableHostCheck": {
2248 "type": "boolean",
2249 "description": "Don't verify connected clients are part of allowed hosts.",
2250 "default": false
2251 },
2252 "hmr": {
2253 "type": "boolean",
2254 "description": "Enable hot module replacement.",
2255 "default": false
2256 },
2257 "watch": {
2258 "type": "boolean",
2259 "description": "Rebuild on change.",
2260 "default": true
2261 },
2262 "hmrWarning": {
2263 "type": "boolean",
2264 "description": "Show a warning when the --hmr option is enabled.",
2265 "default": true,
2266 "x-deprecated": "No longer has an effect."
2267 },
2268 "servePathDefaultWarning": {
2269 "type": "boolean",
2270 "description": "Show a warning when deploy-url/base-href use unsupported serve path values.",
2271 "default": true,
2272 "x-deprecated": "No longer has an effect."
2273 },
2274 "optimization": {
2275 "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, tree-shaking and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
2276 "x-user-analytics": 16,
2277 "oneOf": [
2278 {
2279 "type": "object",
2280 "properties": {
2281 "scripts": {
2282 "type": "boolean",
2283 "description": "Enables optimization of the scripts output.",
2284 "default": true
2285 },
2286 "styles": {
2287 "type": "boolean",
2288 "description": "Enables optimization of the styles output.",
2289 "default": true
2290 }
2291 },
2292 "additionalProperties": false
2293 },
2294 {
2295 "type": "boolean"
2296 }
2297 ],
2298 "x-deprecated": "Use the \"optimization\" option in the browser builder instead."
2299 },
2300 "aot": {
2301 "type": "boolean",
2302 "description": "Build using Ahead of Time compilation.",
2303 "x-user-analytics": 13,
2304 "x-deprecated": "Use the \"aot\" option in the browser builder instead."
2305 },
2306 "sourceMap": {
2307 "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
2308 "oneOf": [
2309 {
2310 "type": "object",
2311 "properties": {
2312 "scripts": {
2313 "type": "boolean",
2314 "description": "Output source maps for all scripts.",
2315 "default": true
2316 },
2317 "styles": {
2318 "type": "boolean",
2319 "description": "Output source maps for all styles.",
2320 "default": true
2321 },
2322 "hidden": {
2323 "type": "boolean",
2324 "description": "Output source maps used for error reporting tools.",
2325 "default": false
2326 },
2327 "vendor": {
2328 "type": "boolean",
2329 "description": "Resolve vendor packages source maps.",
2330 "default": false
2331 }
2332 },
2333 "additionalProperties": false
2334 },
2335 {
2336 "type": "boolean"
2337 }
2338 ],
2339 "x-deprecated": "Use the \"sourceMap\" option in the browser builder instead."
2340 },
2341 "vendorChunk": {
2342 "type": "boolean",
2343 "description": "Generate a seperate bundle containing only vendor libraries. This option should only used for development.",
2344 "x-deprecated": "Use the \"vendorChunk\" option in the browser builder instead."
2345 },
2346 "commonChunk": {
2347 "type": "boolean",
2348 "description": "Generate a seperate bundle containing code used across multiple bundles.",
2349 "x-deprecated": "Use the \"commonChunk\" option in the browser builder instead."
2350 },
2351 "baseHref": {
2352 "type": "string",
2353 "description": "Base url for the application being built.",
2354 "x-deprecated": "Use the \"baseHref\" option in the browser builder instead."
2355 },
2356 "deployUrl": {
2357 "type": "string",
2358 "description": "URL where files will be deployed.",
2359 "x-deprecated": "Use the \"deployUrl\" option in the browser builder instead."
2360 },
2361 "progress": {
2362 "type": "boolean",
2363 "description": "Log progress to the console while building.",
2364 "x-deprecated": "Use the \"progress\" option in the browser builder instead."
2365 },
2366 "poll": {
2367 "type": "number",
2368 "description": "Enable and define the file watching poll time period in milliseconds."
2369 }
2370 },
2371 "additionalProperties": false
2372 },
2373 "AngularDevkitBuildAngularExtractI18nSchema": {
2374 "title": "Extract i18n Target",
2375 "description": "Extract i18n target options for Build Facade.",
2376 "type": "object",
2377 "properties": {
2378 "browserTarget": {
2379 "type": "string",
2380 "description": "A browser builder target to extract i18n messages in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
2381 "pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
2382 },
2383 "format": {
2384 "type": "string",
2385 "description": "Output format for the generated file.",
2386 "default": "xlf",
2387 "enum": [
2388 "xmb",
2389 "xlf",
2390 "xlif",
2391 "xliff",
2392 "xlf2",
2393 "xliff2",
2394 "json",
2395 "arb",
2396 "legacy-migrate"
2397 ]
2398 },
2399 "progress": {
2400 "type": "boolean",
2401 "description": "Log progress to the console.",
2402 "default": true
2403 },
2404 "outputPath": {
2405 "type": "string",
2406 "description": "Path where output will be placed."
2407 },
2408 "outFile": {
2409 "type": "string",
2410 "description": "Name of the file to output."
2411 }
2412 },
2413 "additionalProperties": false
2414 },
2415 "AngularDevkitBuildAngularKarmaSchema": {
2416 "title": "Karma Target",
2417 "description": "Karma target options for Build Facade.",
2418 "type": "object",
2419 "properties": {
2420 "main": {
2421 "type": "string",
2422 "description": "The name of the main entry-point file."
2423 },
2424 "tsConfig": {
2425 "type": "string",
2426 "description": "The name of the TypeScript configuration file."
2427 },
2428 "karmaConfig": {
2429 "type": "string",
2430 "description": "The name of the Karma configuration file."
2431 },
2432 "polyfills": {
2433 "type": "string",
2434 "description": "The name of the polyfills file."
2435 },
2436 "assets": {
2437 "type": "array",
2438 "description": "List of static application assets.",
2439 "default": [],
2440 "items": {
2441 "$ref": "#/definitions/AngularDevkitBuildAngularKarmaSchema/definitions/assetPattern"
2442 }
2443 },
2444 "scripts": {
2445 "description": "Global scripts to be included in the build.",
2446 "type": "array",
2447 "default": [],
2448 "items": {
2449 "$ref": "#/definitions/AngularDevkitBuildAngularKarmaSchema/definitions/extraEntryPoint"
2450 }
2451 },
2452 "styles": {
2453 "description": "Global styles to be included in the build.",
2454 "type": "array",
2455 "default": [],
2456 "items": {
2457 "$ref": "#/definitions/AngularDevkitBuildAngularKarmaSchema/definitions/extraEntryPoint"
2458 }
2459 },
2460 "inlineStyleLanguage": {
2461 "description": "The stylesheet language to use for the application's inline component styles.",
2462 "type": "string",
2463 "default": "css",
2464 "enum": [
2465 "css",
2466 "less",
2467 "sass",
2468 "scss"
2469 ]
2470 },
2471 "stylePreprocessorOptions": {
2472 "description": "Options to pass to style preprocessors",
2473 "type": "object",
2474 "properties": {
2475 "includePaths": {
2476 "description": "Paths to include. Paths will be resolved to workspace root.",
2477 "type": "array",
2478 "items": {
2479 "type": "string"
2480 },
2481 "default": []
2482 }
2483 },
2484 "additionalProperties": false
2485 },
2486 "include": {
2487 "type": "array",
2488 "items": {
2489 "type": "string"
2490 },
2491 "description": "Globs of files to include, relative to workspace or project root. \nThere are 2 special cases:\n - when a path to directory is provided, all spec files ending \".spec.@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching spec file exists it will be included instead"
2492 },
2493 "sourceMap": {
2494 "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
2495 "default": true,
2496 "oneOf": [
2497 {
2498 "type": "object",
2499 "properties": {
2500 "scripts": {
2501 "type": "boolean",
2502 "description": "Output source maps for all scripts.",
2503 "default": true
2504 },
2505 "styles": {
2506 "type": "boolean",
2507 "description": "Output source maps for all styles.",
2508 "default": true
2509 },
2510 "vendor": {
2511 "type": "boolean",
2512 "description": "Resolve vendor packages source maps.",
2513 "default": false
2514 }
2515 },
2516 "additionalProperties": false
2517 },
2518 {
2519 "type": "boolean"
2520 }
2521 ]
2522 },
2523 "progress": {
2524 "type": "boolean",
2525 "description": "Log progress to the console while building.",
2526 "default": true
2527 },
2528 "watch": {
2529 "type": "boolean",
2530 "description": "Run build when files change."
2531 },
2532 "poll": {
2533 "type": "number",
2534 "description": "Enable and define the file watching poll time period in milliseconds."
2535 },
2536 "preserveSymlinks": {
2537 "type": "boolean",
2538 "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
2539 },
2540 "browsers": {
2541 "type": "string",
2542 "description": "Override which browsers tests are run against."
2543 },
2544 "codeCoverage": {
2545 "type": "boolean",
2546 "description": "Output a code coverage report.",
2547 "default": false
2548 },
2549 "codeCoverageExclude": {
2550 "type": "array",
2551 "description": "Globs to exclude from code coverage.",
2552 "items": {
2553 "type": "string"
2554 },
2555 "default": []
2556 },
2557 "fileReplacements": {
2558 "description": "Replace compilation source files with other compilation source files in the build.",
2559 "type": "array",
2560 "items": {
2561 "oneOf": [
2562 {
2563 "type": "object",
2564 "properties": {
2565 "src": {
2566 "type": "string"
2567 },
2568 "replaceWith": {
2569 "type": "string"
2570 }
2571 },
2572 "additionalProperties": false
2573 },
2574 {
2575 "type": "object",
2576 "properties": {
2577 "replace": {
2578 "type": "string"
2579 },
2580 "with": {
2581 "type": "string"
2582 }
2583 },
2584 "additionalProperties": false
2585 }
2586 ]
2587 },
2588 "default": []
2589 },
2590 "reporters": {
2591 "type": "array",
2592 "description": "Karma reporters to use. Directly passed to the karma runner.",
2593 "items": {
2594 "type": "string"
2595 }
2596 },
2597 "webWorkerTsConfig": {
2598 "type": "string",
2599 "description": "TypeScript configuration for Web Worker modules."
2600 }
2601 },
2602 "additionalProperties": false,
2603 "definitions": {
2604 "assetPattern": {
2605 "oneOf": [
2606 {
2607 "type": "object",
2608 "properties": {
2609 "glob": {
2610 "type": "string",
2611 "description": "The pattern to match."
2612 },
2613 "input": {
2614 "type": "string",
2615 "description": "The input directory path in which to apply 'glob'. Defaults to the project root."
2616 },
2617 "output": {
2618 "type": "string",
2619 "description": "Absolute path within the output."
2620 },
2621 "ignore": {
2622 "description": "An array of globs to ignore.",
2623 "type": "array",
2624 "items": {
2625 "type": "string"
2626 }
2627 }
2628 },
2629 "additionalProperties": false
2630 },
2631 {
2632 "type": "string"
2633 }
2634 ]
2635 },
2636 "extraEntryPoint": {
2637 "oneOf": [
2638 {
2639 "type": "object",
2640 "properties": {
2641 "input": {
2642 "type": "string",
2643 "description": "The file to include."
2644 },
2645 "bundleName": {
2646 "type": "string",
2647 "pattern": "^[\\w\\-.]*$",
2648 "description": "The bundle name for this extra entry point."
2649 },
2650 "inject": {
2651 "type": "boolean",
2652 "description": "If the bundle will be referenced in the HTML file.",
2653 "default": true
2654 }
2655 },
2656 "additionalProperties": false
2657 },
2658 {
2659 "type": "string",
2660 "description": "The file to include."
2661 }
2662 ]
2663 }
2664 }
2665 },
2666 "AngularDevkitBuildAngularProtractorSchema": {
2667 "title": "Protractor Target",
2668 "description": "Protractor target options for Build Facade.",
2669 "type": "object",
2670 "properties": {
2671 "protractorConfig": {
2672 "type": "string",
2673 "description": "The name of the Protractor configuration file."
2674 },
2675 "devServerTarget": {
2676 "type": "string",
2677 "description": "A dev-server builder target to run tests against in the format of `project:target[:configuration]`. You can also pass in more than one configuration name as a comma-separated list. Example: `project:target:production,staging`.",
2678 "pattern": "^([^:\\s]+:[^:\\s]+(:[^\\s]+)?)?$"
2679 },
2680 "grep": {
2681 "type": "string",
2682 "description": "Execute specs whose names match the pattern, which is internally compiled to a RegExp."
2683 },
2684 "invertGrep": {
2685 "type": "boolean",
2686 "description": "Invert the selection specified by the 'grep' option.",
2687 "default": false
2688 },
2689 "specs": {
2690 "type": "array",
2691 "description": "Override specs in the protractor config.",
2692 "default": [],
2693 "items": {
2694 "type": "string",
2695 "description": "Spec name."
2696 }
2697 },
2698 "suite": {
2699 "type": "string",
2700 "description": "Override suite in the protractor config."
2701 },
2702 "webdriverUpdate": {
2703 "type": "boolean",
2704 "description": "Try to update webdriver.",
2705 "default": true
2706 },
2707 "port": {
2708 "type": "number",
2709 "description": "The port to use to serve the application."
2710 },
2711 "host": {
2712 "type": "string",
2713 "description": "Host to listen on."
2714 },
2715 "baseUrl": {
2716 "type": "string",
2717 "description": "Base URL for protractor to connect to."
2718 }
2719 },
2720 "additionalProperties": false
2721 },
2722 "AngularDevkitBuildAngularServerSchema": {
2723 "title": "Universal Target",
2724 "type": "object",
2725 "properties": {
2726 "main": {
2727 "type": "string",
2728 "description": "The name of the main entry-point file."
2729 },
2730 "tsConfig": {
2731 "type": "string",
2732 "default": "tsconfig.app.json",
2733 "description": "The name of the TypeScript configuration file."
2734 },
2735 "inlineStyleLanguage": {
2736 "description": "The stylesheet language to use for the application's inline component styles.",
2737 "type": "string",
2738 "default": "css",
2739 "enum": [
2740 "css",
2741 "less",
2742 "sass",
2743 "scss"
2744 ]
2745 },
2746 "stylePreprocessorOptions": {
2747 "description": "Options to pass to style preprocessors",
2748 "type": "object",
2749 "properties": {
2750 "includePaths": {
2751 "description": "Paths to include. Paths will be resolved to workspace root.",
2752 "type": "array",
2753 "items": {
2754 "type": "string"
2755 },
2756 "default": []
2757 }
2758 },
2759 "additionalProperties": false
2760 },
2761 "optimization": {
2762 "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code elimination. For more information, see https://angular.io/guide/workspace-config#optimization-configuration.",
2763 "x-user-analytics": 16,
2764 "default": true,
2765 "oneOf": [
2766 {
2767 "type": "object",
2768 "properties": {
2769 "scripts": {
2770 "type": "boolean",
2771 "description": "Enables optimization of the scripts output.",
2772 "default": true
2773 },
2774 "styles": {
2775 "type": "boolean",
2776 "description": "Enables optimization of the styles output.",
2777 "default": true
2778 }
2779 },
2780 "additionalProperties": false
2781 },
2782 {
2783 "type": "boolean"
2784 }
2785 ]
2786 },
2787 "fileReplacements": {
2788 "description": "Replace compilation source files with other compilation source files in the build.",
2789 "type": "array",
2790 "items": {
2791 "$ref": "#/definitions/AngularDevkitBuildAngularServerSchema/definitions/fileReplacement"
2792 },
2793 "default": []
2794 },
2795 "outputPath": {
2796 "type": "string",
2797 "description": "Path where output will be placed."
2798 },
2799 "resourcesOutputPath": {
2800 "type": "string",
2801 "description": "The path where style resources will be placed, relative to outputPath.",
2802 "default": ""
2803 },
2804 "sourceMap": {
2805 "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
2806 "default": false,
2807 "oneOf": [
2808 {
2809 "type": "object",
2810 "properties": {
2811 "scripts": {
2812 "type": "boolean",
2813 "description": "Output source maps for all scripts.",
2814 "default": true
2815 },
2816 "styles": {
2817 "type": "boolean",
2818 "description": "Output source maps for all styles.",
2819 "default": true
2820 },
2821 "hidden": {
2822 "type": "boolean",
2823 "description": "Output source maps used for error reporting tools.",
2824 "default": false
2825 },
2826 "vendor": {
2827 "type": "boolean",
2828 "description": "Resolve vendor packages source maps.",
2829 "default": false
2830 }
2831 },
2832 "additionalProperties": false
2833 },
2834 {
2835 "type": "boolean"
2836 }
2837 ]
2838 },
2839 "deployUrl": {
2840 "type": "string",
2841 "description": "URL where files will be deployed."
2842 },
2843 "verbose": {
2844 "type": "boolean",
2845 "description": "Adds more details to output logging.",
2846 "default": false
2847 },
2848 "progress": {
2849 "type": "boolean",
2850 "description": "Log progress to the console while building.",
2851 "default": true
2852 },
2853 "i18nMissingTranslation": {
2854 "type": "string",
2855 "description": "How to handle missing translations for i18n.",
2856 "enum": [
2857 "warning",
2858 "error",
2859 "ignore"
2860 ],
2861 "default": "warning"
2862 },
2863 "localize": {
2864 "description": "Translate the bundles in one or more locales.",
2865 "oneOf": [
2866 {
2867 "type": "boolean",
2868 "description": "Translate all locales."
2869 },
2870 {
2871 "type": "array",
2872 "description": "List of locales ID's to translate.",
2873 "minItems": 1,
2874 "items": {
2875 "type": "string",
2876 "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})+)?$"
2877 }
2878 }
2879 ]
2880 },
2881 "outputHashing": {
2882 "type": "string",
2883 "description": "Define the output filename cache-busting hashing mode.",
2884 "default": "none",
2885 "enum": [
2886 "none",
2887 "all",
2888 "media",
2889 "bundles"
2890 ]
2891 },
2892 "deleteOutputPath": {
2893 "type": "boolean",
2894 "description": "Delete the output path before building.",
2895 "default": true
2896 },
2897 "preserveSymlinks": {
2898 "type": "boolean",
2899 "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set."
2900 },
2901 "extractLicenses": {
2902 "type": "boolean",
2903 "description": "Extract all licenses in a separate file, in the case of production builds only.",
2904 "default": true
2905 },
2906 "showCircularDependencies": {
2907 "type": "boolean",
2908 "description": "Show circular dependency warnings on builds.",
2909 "default": false,
2910 "x-deprecated": "The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tooling."
2911 },
2912 "namedChunks": {
2913 "type": "boolean",
2914 "description": "Use file name for lazy loaded chunks.",
2915 "default": false
2916 },
2917 "bundleDependencies": {
2918 "description": "Which external dependencies to bundle into the bundle. By default, all of node_modules will be bundled.",
2919 "default": true,
2920 "oneOf": [
2921 {
2922 "type": "boolean"
2923 },
2924 {
2925 "type": "string",
2926 "enum": [
2927 "none",
2928 "all"
2929 ]
2930 }
2931 ]
2932 },
2933 "externalDependencies": {
2934 "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.",
2935 "type": "array",
2936 "items": {
2937 "type": "string"
2938 },
2939 "default": []
2940 },
2941 "statsJson": {
2942 "type": "boolean",
2943 "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
2944 "default": false
2945 },
2946 "watch": {
2947 "type": "boolean",
2948 "description": "Run build when files change.",
2949 "default": false
2950 },
2951 "poll": {
2952 "type": "number",
2953 "description": "Enable and define the file watching poll time period in milliseconds."
2954 }
2955 },
2956 "additionalProperties": false,
2957 "definitions": {
2958 "fileReplacement": {
2959 "oneOf": [
2960 {
2961 "type": "object",
2962 "properties": {
2963 "src": {
2964 "type": "string",
2965 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2966 },
2967 "replaceWith": {
2968 "type": "string",
2969 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2970 }
2971 },
2972 "additionalProperties": false
2973 },
2974 {
2975 "type": "object",
2976 "properties": {
2977 "replace": {
2978 "type": "string",
2979 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2980 },
2981 "with": {
2982 "type": "string",
2983 "pattern": "\\.(([cm]?j|t)sx?|json)$"
2984 }
2985 },
2986 "additionalProperties": false
2987 }
2988 ]
2989 }
2990 }
2991 },
2992 "AngularDevkitBuildAngularTslintSchema": {
2993 "title": "TSlint Target",
2994 "description": "TSlint target options for Build Facade.",
2995 "type": "object",
2996 "properties": {
2997 "tslintConfig": {
2998 "type": "string",
2999 "description": "The name of the TSLint configuration file."
3000 },
3001 "tsConfig": {
3002 "description": "The name of the TypeScript configuration file.",
3003 "oneOf": [
3004 {
3005 "type": "string"
3006 },
3007 {
3008 "type": "array",
3009 "items": {
3010 "type": "string"
3011 }
3012 }
3013 ]
3014 },
3015 "fix": {
3016 "type": "boolean",
3017 "description": "Fixes linting errors (may overwrite linted files).",
3018 "default": false
3019 },
3020 "typeCheck": {
3021 "type": "boolean",
3022 "description": "Controls the type check for linting.",
3023 "default": false
3024 },
3025 "force": {
3026 "type": "boolean",
3027 "description": "Succeeds even if there was linting errors.",
3028 "default": false
3029 },
3030 "silent": {
3031 "type": "boolean",
3032 "description": "Show output text.",
3033 "default": false
3034 },
3035 "format": {
3036 "type": "string",
3037 "description": "Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist).",
3038 "default": "stylish",
3039 "anyOf": [
3040 {
3041 "enum": [
3042 "checkstyle",
3043 "codeFrame",
3044 "filesList",
3045 "json",
3046 "junit",
3047 "msbuild",
3048 "pmd",
3049 "prose",
3050 "stylish",
3051 "tap",
3052 "verbose",
3053 "vso"
3054 ]
3055 },
3056 {
3057 "minLength": 1
3058 }
3059 ]
3060 },
3061 "exclude": {
3062 "type": "array",
3063 "description": "Files to exclude from linting.",
3064 "default": [],
3065 "items": {
3066 "type": "string"
3067 }
3068 },
3069 "files": {
3070 "type": "array",
3071 "description": "Files to include in linting.",
3072 "default": [],
3073 "items": {
3074 "type": "string"
3075 }
3076 }
3077 },
3078 "additionalProperties": false
3079 },
3080 "AngularDevkitBuildAngularNgPackagrSchema": {
3081 "title": "ng-packagr Target",
3082 "description": "ng-packagr target options for Build Architect. Use to build library projects.",
3083 "type": "object",
3084 "properties": {
3085 "project": {
3086 "type": "string",
3087 "description": "The file path for the ng-packagr configuration file, relative to the current workspace."
3088 },
3089 "tsConfig": {
3090 "type": "string",
3091 "description": "The full path for the TypeScript configuration file, relative to the current workspace."
3092 },
3093 "watch": {
3094 "type": "boolean",
3095 "description": "Run build when files change.",
3096 "default": false
3097 }
3098 },
3099 "additionalProperties": false
3100 }
3101 }
3102}
Note: See TracBrowser for help on using the repository browser.