Skip to content

Commit f7e3e23

Browse files
alan-agius4filipesilva
authored andcommitted
feat(@angular/cli): add defaultConfiguration property to architect schema
1 parent a7b9497 commit f7e3e23

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

packages/angular/cli/lib/config/schema.json

+36
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@
496496
]
497497
}
498498
},
499+
"defaultConfiguration": {
500+
"type": "string",
501+
"description": "A default named configuration to use when a target configuration is not provided."
502+
},
499503
"options": {
500504
"type": "object"
501505
},
@@ -516,6 +520,10 @@
516520
"properties": {
517521
"builder": { "const": "@angular-devkit/build-angular:app-shell" },
518522
"options": { "$ref": "#/definitions/targetOptions/definitions/appShell" },
523+
"defaultConfiguration": {
524+
"type": "string",
525+
"description": "A default named configuration to use when a target configuration is not provided."
526+
},
519527
"configurations": {
520528
"type": "object",
521529
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/appShell" }
@@ -527,6 +535,10 @@
527535
"properties": {
528536
"builder": { "const": "@angular-devkit/build-angular:browser" },
529537
"options": { "$ref": "#/definitions/targetOptions/definitions/browser" },
538+
"defaultConfiguration": {
539+
"type": "string",
540+
"description": "A default named configuration to use when a target configuration is not provided."
541+
},
530542
"configurations": {
531543
"type": "object",
532544
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/browser" }
@@ -538,6 +550,10 @@
538550
"properties": {
539551
"builder": { "const": "@angular-devkit/build-angular:dev-server" },
540552
"options": { "$ref": "#/definitions/targetOptions/definitions/devServer" },
553+
"defaultConfiguration": {
554+
"type": "string",
555+
"description": "A default named configuration to use when a target configuration is not provided."
556+
},
541557
"configurations": {
542558
"type": "object",
543559
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/devServer" }
@@ -549,6 +565,10 @@
549565
"properties": {
550566
"builder": { "const": "@angular-devkit/build-angular:extract-i18n" },
551567
"options": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" },
568+
"defaultConfiguration": {
569+
"type": "string",
570+
"description": "A default named configuration to use when a target configuration is not provided."
571+
},
552572
"configurations": {
553573
"type": "object",
554574
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/extracti18n" }
@@ -560,6 +580,10 @@
560580
"properties": {
561581
"builder": { "const": "@angular-devkit/build-angular:karma" },
562582
"options": { "$ref": "#/definitions/targetOptions/definitions/karma" },
583+
"defaultConfiguration": {
584+
"type": "string",
585+
"description": "A default named configuration to use when a target configuration is not provided."
586+
},
563587
"configurations": {
564588
"type": "object",
565589
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/karma" }
@@ -571,6 +595,10 @@
571595
"properties": {
572596
"builder": { "const": "@angular-devkit/build-angular:protractor" },
573597
"options": { "$ref": "#/definitions/targetOptions/definitions/protractor" },
598+
"defaultConfiguration": {
599+
"type": "string",
600+
"description": "A default named configuration to use when a target configuration is not provided."
601+
},
574602
"configurations": {
575603
"type": "object",
576604
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/protractor" }
@@ -582,6 +610,10 @@
582610
"properties": {
583611
"builder": { "const": "@angular-devkit/build-angular:server" },
584612
"options": { "$ref": "#/definitions/targetOptions/definitions/server" },
613+
"defaultConfiguration": {
614+
"type": "string",
615+
"description": "A default named configuration to use when a target configuration is not provided."
616+
},
585617
"configurations": {
586618
"type": "object",
587619
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/server" }
@@ -593,6 +625,10 @@
593625
"properties": {
594626
"builder": { "const": "@angular-devkit/build-angular:tslint" },
595627
"options": { "$ref": "#/definitions/targetOptions/definitions/tslint" },
628+
"defaultConfiguration": {
629+
"type": "string",
630+
"description": "A default named configuration to use when a target configuration is not provided."
631+
},
596632
"configurations": {
597633
"type": "object",
598634
"additionalProperties": { "$ref": "#/definitions/targetOptions/definitions/tslint" }

0 commit comments

Comments
 (0)