Skip to content

Commit 9c57e45

Browse files
alan-agius4filipesilva
authored andcommitted
docs: improve description for optimization, configuration and target options.
Closes #16572 Closes #17978 Closes angular/angular#39780
1 parent 35f4090 commit 9c57e45

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

packages/angular/cli/commands/definitions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"configuration": {
17-
"description": "A named build target, as specified in the \"configurations\" section of angular.json.\nEach named target is accompanied by a configuration of option defaults for that target.\nSetting this explicitly overrides the \"--prod\" flag",
17+
"description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.\nSetting this explicitly overrides the \"--prod\" flag",
1818
"type": "string",
1919
"aliases": [
2020
"c"

packages/angular/cli/commands/deploy.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
"configuration": {
23-
"description": "A named build target, as specified in the \"configurations\" section of angular.json.\nEach named target is accompanied by a configuration of option defaults for that target.",
23+
"description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.",
2424
"type": "string",
2525
"aliases": [
2626
"c"

packages/angular/cli/commands/run.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"configuration": {
25-
"description": "A named builder configuration, defined in the \"configurations\" section of angular.json.\nThe builder uses the named configuration to run the given target.",
25+
"description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section of angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations.",
2626
"type": "string",
2727
"aliases": [ "c" ]
2828
}

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,11 @@
633633
"properties": {
634634
"browserTarget": {
635635
"type": "string",
636-
"description": "Target to build."
636+
"description": "A browser builder target to 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`."
637637
},
638638
"serverTarget": {
639639
"type": "string",
640-
"description": "Server target to use for rendering the app shell."
640+
"description": "A server builder target to 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`."
641641
},
642642
"appModuleBundle": {
643643
"type": "string",
@@ -715,7 +715,7 @@
715715
"additionalProperties": false
716716
},
717717
"optimization": {
718-
"description": "Enables optimization of the build output.",
718+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code eliminiation and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
719719
"oneOf": [
720720
{
721721
"type": "object",
@@ -1188,7 +1188,7 @@
11881188
"properties": {
11891189
"browserTarget": {
11901190
"type": "string",
1191-
"description": "Target to serve."
1191+
"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`."
11921192
},
11931193
"port": {
11941194
"type": "number",
@@ -1280,7 +1280,7 @@
12801280
"default": true
12811281
},
12821282
"optimization": {
1283-
"description": "Enable optimization of the build output.",
1283+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code eliminiation and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
12841284
"default": false,
12851285
"oneOf": [
12861286
{
@@ -1371,7 +1371,7 @@
13711371
"properties": {
13721372
"browserTarget": {
13731373
"type": "string",
1374-
"description": "Target to extract from."
1374+
"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`."
13751375
},
13761376
"format": {
13771377
"type": "string",
@@ -1689,7 +1689,7 @@
16891689
},
16901690
"devServerTarget": {
16911691
"type": "string",
1692-
"description": "Dev server target to run tests against."
1692+
"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`."
16931693
},
16941694
"grep": {
16951695
"type": "string",
@@ -1767,7 +1767,7 @@
17671767
"additionalProperties": false
17681768
},
17691769
"optimization": {
1770-
"description": "Enables optimization of the build output.",
1770+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code eliminiation. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
17711771
"default": false,
17721772
"oneOf": [
17731773
{

packages/angular_devkit/build_angular/src/app-shell/schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"properties": {
77
"browserTarget": {
88
"type": "string",
9-
"description": "Target to build.",
9+
"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`.",
1010
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1111
},
1212
"serverTarget": {
1313
"type": "string",
14-
"description": "Server target to use for rendering the app shell.",
14+
"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`.",
1515
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1616
},
1717
"appModuleBundle": {

packages/angular_devkit/build_angular/src/browser/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"additionalProperties": false
5858
},
5959
"optimization": {
60-
"description": "Enables optimization of the build output.",
60+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code eliminiation and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
6161
"x-user-analytics": 16,
6262
"default": false,
6363
"oneOf": [

packages/angular_devkit/build_angular/src/dev-server/schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"properties": {
77
"browserTarget": {
88
"type": "string",
9-
"description": "Target to serve.",
9+
"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`.",
1010
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1111
},
1212
"port": {
@@ -105,7 +105,7 @@
105105
"x-deprecated": "No longer has an effect."
106106
},
107107
"optimization": {
108-
"description": "Enables optimization of the build output.",
108+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code eliminiation, tree-shaking and fonts inlining. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
109109
"x-user-analytics": 16,
110110
"oneOf": [
111111
{

packages/angular_devkit/build_angular/src/extract-i18n/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"properties": {
77
"browserTarget": {
88
"type": "string",
9-
"description": "Target to extract from.",
9+
"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`.",
1010
"pattern": "^[^:\\s]+:[^:\\s]+(:[^\\s]+)?$"
1111
},
1212
"format": {

packages/angular_devkit/build_angular/src/protractor/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devServerTarget": {
1212
"type": "string",
13-
"description": "Dev server target to run tests against.",
13+
"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`.",
1414
"pattern": "^([^:\\s]+:[^:\\s]+(:[^\\s]+)?)?$"
1515
},
1616
"grep": {

packages/angular_devkit/build_angular/src/server/schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"additionalProperties": false
3030
},
3131
"optimization": {
32-
"description": "Enables optimization of the build output.",
32+
"description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking and dead-code eliminiation. For more information, see https://angular.io/guide/workspace-config#optimization-and-source-map-configuration.",
3333
"x-user-analytics": 16,
3434
"default": false,
3535
"oneOf": [

0 commit comments

Comments
 (0)