@angular/cli 11.0.0-rc.3 → 11.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/build.d.ts +5 -2
- package/commands/definitions.json +1 -1
- package/commands/deploy.d.ts +5 -2
- package/commands/deploy.json +1 -1
- package/commands/e2e.d.ts +5 -2
- package/commands/extract-i18n.d.ts +5 -2
- package/commands/run.d.ts +5 -2
- package/commands/run.json +1 -1
- package/commands/serve.d.ts +5 -2
- package/commands/test.d.ts +5 -2
- package/lib/config/schema.json +17 -16
- package/models/command.js +4 -1
- package/models/schematic-command.js +7 -5
- package/package.json +11 -18
package/commands/build.d.ts
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Schema {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
8
|
+
* "configurations" section of angular.json.
|
|
9
|
+
* The builder uses the named configurations to run the given target.
|
|
10
|
+
* For more information, see
|
|
11
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
9
12
|
* Setting this explicitly overrides the "--prod" flag
|
|
10
13
|
*/
|
|
11
14
|
configuration?: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"configuration": {
|
|
17
|
-
"description": "
|
|
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",
|
|
18
18
|
"type": "string",
|
|
19
19
|
"aliases": [
|
|
20
20
|
"c"
|
package/commands/deploy.d.ts
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Schema {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
8
|
+
* "configurations" section of angular.json.
|
|
9
|
+
* The builder uses the named configurations to run the given target.
|
|
10
|
+
* For more information, see
|
|
11
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
|
11
14
|
/**
|
package/commands/deploy.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"configuration": {
|
|
23
|
-
"description": "
|
|
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.",
|
|
24
24
|
"type": "string",
|
|
25
25
|
"aliases": [
|
|
26
26
|
"c"
|
package/commands/e2e.d.ts
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
+
* "configurations" section of angular.json.
|
|
8
|
+
* The builder uses the named configurations to run the given target.
|
|
9
|
+
* For more information, see
|
|
10
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
8
11
|
* Setting this explicitly overrides the "--prod" flag
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
+
* "configurations" section of angular.json.
|
|
8
|
+
* The builder uses the named configurations to run the given target.
|
|
9
|
+
* For more information, see
|
|
10
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
8
11
|
* Setting this explicitly overrides the "--prod" flag
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
package/commands/run.d.ts
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface Schema {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
8
|
+
* "configurations" section of angular.json.
|
|
9
|
+
* The builder uses the named configurations to run the given target.
|
|
10
|
+
* For more information, see
|
|
11
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
|
11
14
|
/**
|
package/commands/run.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"configuration": {
|
|
25
|
-
"description": "
|
|
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.",
|
|
26
26
|
"type": "string",
|
|
27
27
|
"aliases": [ "c" ]
|
|
28
28
|
}
|
package/commands/serve.d.ts
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
+
* "configurations" section of angular.json.
|
|
8
|
+
* The builder uses the named configurations to run the given target.
|
|
9
|
+
* For more information, see
|
|
10
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
8
11
|
* Setting this explicitly overrides the "--prod" flag
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
package/commands/test.d.ts
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* One or more named builder configurations as a comma-separated list as specified in the
|
|
7
|
+
* "configurations" section of angular.json.
|
|
8
|
+
* The builder uses the named configurations to run the given target.
|
|
9
|
+
* For more information, see
|
|
10
|
+
* https://angular.io/guide/workspace-config#alternate-build-configurations.
|
|
8
11
|
* Setting this explicitly overrides the "--prod" flag
|
|
9
12
|
*/
|
|
10
13
|
configuration?: string;
|
package/lib/config/schema.json
CHANGED
|
@@ -619,11 +619,11 @@
|
|
|
619
619
|
"properties": {
|
|
620
620
|
"browserTarget": {
|
|
621
621
|
"type": "string",
|
|
622
|
-
"description": "
|
|
622
|
+
"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`."
|
|
623
623
|
},
|
|
624
624
|
"serverTarget": {
|
|
625
625
|
"type": "string",
|
|
626
|
-
"description": "
|
|
626
|
+
"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`."
|
|
627
627
|
},
|
|
628
628
|
"appModuleBundle": {
|
|
629
629
|
"type": "string",
|
|
@@ -701,7 +701,7 @@
|
|
|
701
701
|
"additionalProperties": false
|
|
702
702
|
},
|
|
703
703
|
"optimization": {
|
|
704
|
-
"description": "Enables optimization of the build output.",
|
|
704
|
+
"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.",
|
|
705
705
|
"oneOf": [
|
|
706
706
|
{
|
|
707
707
|
"type": "object",
|
|
@@ -1044,11 +1044,11 @@
|
|
|
1044
1044
|
"properties": {
|
|
1045
1045
|
"src": {
|
|
1046
1046
|
"type": "string",
|
|
1047
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1047
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1048
1048
|
},
|
|
1049
1049
|
"replaceWith": {
|
|
1050
1050
|
"type": "string",
|
|
1051
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1051
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1052
1052
|
}
|
|
1053
1053
|
},
|
|
1054
1054
|
"additionalProperties": false,
|
|
@@ -1062,11 +1062,11 @@
|
|
|
1062
1062
|
"properties": {
|
|
1063
1063
|
"replace": {
|
|
1064
1064
|
"type": "string",
|
|
1065
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1065
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1066
1066
|
},
|
|
1067
1067
|
"with": {
|
|
1068
1068
|
"type": "string",
|
|
1069
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1069
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1070
1070
|
}
|
|
1071
1071
|
},
|
|
1072
1072
|
"additionalProperties": false,
|
|
@@ -1169,7 +1169,7 @@
|
|
|
1169
1169
|
"properties": {
|
|
1170
1170
|
"browserTarget": {
|
|
1171
1171
|
"type": "string",
|
|
1172
|
-
"description": "
|
|
1172
|
+
"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`."
|
|
1173
1173
|
},
|
|
1174
1174
|
"port": {
|
|
1175
1175
|
"type": "number",
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
"default": true
|
|
1262
1262
|
},
|
|
1263
1263
|
"optimization": {
|
|
1264
|
-
"description": "
|
|
1264
|
+
"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.",
|
|
1265
1265
|
"default": false,
|
|
1266
1266
|
"oneOf": [
|
|
1267
1267
|
{
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
"properties": {
|
|
1353
1353
|
"browserTarget": {
|
|
1354
1354
|
"type": "string",
|
|
1355
|
-
"description": "
|
|
1355
|
+
"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`."
|
|
1356
1356
|
},
|
|
1357
1357
|
"format": {
|
|
1358
1358
|
"type": "string",
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
},
|
|
1666
1666
|
"devServerTarget": {
|
|
1667
1667
|
"type": "string",
|
|
1668
|
-
"description": "
|
|
1668
|
+
"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`."
|
|
1669
1669
|
},
|
|
1670
1670
|
"grep": {
|
|
1671
1671
|
"type": "string",
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
"additionalProperties": false
|
|
1744
1744
|
},
|
|
1745
1745
|
"optimization": {
|
|
1746
|
-
"description": "Enables optimization of the build output.",
|
|
1746
|
+
"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.",
|
|
1747
1747
|
"default": false,
|
|
1748
1748
|
"oneOf": [
|
|
1749
1749
|
{
|
|
@@ -1936,11 +1936,11 @@
|
|
|
1936
1936
|
"properties": {
|
|
1937
1937
|
"src": {
|
|
1938
1938
|
"type": "string",
|
|
1939
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1939
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1940
1940
|
},
|
|
1941
1941
|
"replaceWith": {
|
|
1942
1942
|
"type": "string",
|
|
1943
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1943
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1944
1944
|
}
|
|
1945
1945
|
},
|
|
1946
1946
|
"additionalProperties": false,
|
|
@@ -1954,11 +1954,11 @@
|
|
|
1954
1954
|
"properties": {
|
|
1955
1955
|
"replace": {
|
|
1956
1956
|
"type": "string",
|
|
1957
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1957
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1958
1958
|
},
|
|
1959
1959
|
"with": {
|
|
1960
1960
|
"type": "string",
|
|
1961
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
1961
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
1962
1962
|
}
|
|
1963
1963
|
},
|
|
1964
1964
|
"additionalProperties": false,
|
|
@@ -2064,6 +2064,7 @@
|
|
|
2064
2064
|
"default": "warning"
|
|
2065
2065
|
},
|
|
2066
2066
|
"localize": {
|
|
2067
|
+
"description": "Translate the bundles in one or more locales.",
|
|
2067
2068
|
"oneOf": [
|
|
2068
2069
|
{
|
|
2069
2070
|
"type": "boolean",
|
package/models/command.js
CHANGED
|
@@ -33,7 +33,10 @@ class Command {
|
|
|
33
33
|
return 0;
|
|
34
34
|
}
|
|
35
35
|
async printJsonHelp(_options) {
|
|
36
|
-
|
|
36
|
+
const replacer = (key, value) => key === 'name'
|
|
37
|
+
? core_1.strings.dasherize(value)
|
|
38
|
+
: value;
|
|
39
|
+
this.logger.info(JSON.stringify(this.description, replacer, 2));
|
|
37
40
|
return 0;
|
|
38
41
|
}
|
|
39
42
|
async printHelpUsage() {
|
|
@@ -169,6 +169,13 @@ class SchematicCommand extends command_1.Command {
|
|
|
169
169
|
// Global
|
|
170
170
|
: [__dirname, process.cwd()],
|
|
171
171
|
schemaValidation: true,
|
|
172
|
+
optionTransforms: [
|
|
173
|
+
// Add configuration file defaults
|
|
174
|
+
async (schematic, current) => ({
|
|
175
|
+
...(await config_1.getSchematicDefaults(schematic.collection.name, schematic.name, getProjectName())),
|
|
176
|
+
...current,
|
|
177
|
+
}),
|
|
178
|
+
],
|
|
172
179
|
});
|
|
173
180
|
const getProjectName = () => {
|
|
174
181
|
if (this.workspace) {
|
|
@@ -192,11 +199,6 @@ class SchematicCommand extends command_1.Command {
|
|
|
192
199
|
}
|
|
193
200
|
return undefined;
|
|
194
201
|
};
|
|
195
|
-
const defaultOptionTransform = async (schematic, current) => ({
|
|
196
|
-
...(await config_1.getSchematicDefaults(schematic.collection.name, schematic.name, getProjectName())),
|
|
197
|
-
...current,
|
|
198
|
-
});
|
|
199
|
-
workflow.engineHost.registerOptionsTransform(defaultOptionTransform);
|
|
200
202
|
workflow.registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
|
|
201
203
|
workflow.registry.addSmartDefaultProvider('projectName', getProjectName);
|
|
202
204
|
workflow.registry.useXDeprecatedProvider(msg => this.logger.warn(msg));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.3",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.1100.
|
|
32
|
-
"@angular-devkit/core": "11.0.
|
|
33
|
-
"@angular-devkit/schematics": "11.0.
|
|
34
|
-
"@schematics/angular": "11.0.
|
|
35
|
-
"@schematics/update": "0.1100.
|
|
31
|
+
"@angular-devkit/architect": "0.1100.3",
|
|
32
|
+
"@angular-devkit/core": "11.0.3",
|
|
33
|
+
"@angular-devkit/schematics": "11.0.3",
|
|
34
|
+
"@schematics/angular": "11.0.3",
|
|
35
|
+
"@schematics/update": "0.1100.3",
|
|
36
36
|
"@yarnpkg/lockfile": "1.1.0",
|
|
37
37
|
"ansi-colors": "4.1.1",
|
|
38
38
|
"debug": "4.2.0",
|
|
@@ -52,23 +52,16 @@
|
|
|
52
52
|
"ng-update": {
|
|
53
53
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
54
54
|
"packageGroup": {
|
|
55
|
-
"@angular/cli": "11.0.
|
|
56
|
-
"@angular-devkit/build-angular": "0.1100.
|
|
57
|
-
"@angular-devkit/build-
|
|
58
|
-
"@angular-devkit/
|
|
59
|
-
"@angular-devkit/
|
|
60
|
-
"@angular-devkit/schematics": "11.0.0-rc.3"
|
|
55
|
+
"@angular/cli": "11.0.3",
|
|
56
|
+
"@angular-devkit/build-angular": "0.1100.3",
|
|
57
|
+
"@angular-devkit/build-webpack": "0.1100.3",
|
|
58
|
+
"@angular-devkit/core": "11.0.3",
|
|
59
|
+
"@angular-devkit/schematics": "11.0.3"
|
|
61
60
|
}
|
|
62
61
|
},
|
|
63
62
|
"engines": {
|
|
64
63
|
"node": ">= 10.13.0",
|
|
65
64
|
"npm": ">= 6.11.0",
|
|
66
65
|
"yarn": ">= 1.13.0"
|
|
67
|
-
},
|
|
68
|
-
"husky": {
|
|
69
|
-
"hooks": {
|
|
70
|
-
"commit-msg": "yarn -s ng-dev commit-message pre-commit-validate --file-env-variable HUSKY_GIT_PARAMS",
|
|
71
|
-
"prepare-commit-msg": "yarn -s ng-dev commit-message restore-commit-message-draft --file-env-variable HUSKY_GIT_PARAMS"
|
|
72
|
-
}
|
|
73
66
|
}
|
|
74
67
|
}
|