@angular/cli 9.0.3 → 9.0.7
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/README.md +1 -1
- package/lib/cli/index.js +5 -5
- package/lib/config/schema.json +4 -4
- package/package.json +12 -12
- package/utilities/color.d.ts +3 -1
- package/utilities/color.js +8 -2
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ To capture a CPU profiling, you can:
|
|
|
237
237
|
* on Windows: ̀̀`setx NG_CLI_PROFILING my-profile`
|
|
238
238
|
|
|
239
239
|
Then, just run the ng command on which you want to capture a CPU profile.
|
|
240
|
-
You will then obtain a `my-profile.cpuprofile` file in the folder from
|
|
240
|
+
You will then obtain a `my-profile.cpuprofile` file in the folder from which you ran the ng command.
|
|
241
241
|
|
|
242
242
|
You can use the Chrome Devtools to process it. To do so:
|
|
243
243
|
1. open `chrome://inspect/#devices` in Chrome
|
package/lib/cli/index.js
CHANGED
|
@@ -29,11 +29,11 @@ async function default_1(options) {
|
|
|
29
29
|
return 3;
|
|
30
30
|
}
|
|
31
31
|
const logger = node_1.createConsoleLogger(isDebug, process.stdout, process.stderr, {
|
|
32
|
-
info: s => (color_1.supportsColor ? s : color_1.
|
|
33
|
-
debug: s => (color_1.supportsColor ? s : color_1.
|
|
34
|
-
warn: s => (color_1.supportsColor ? color_1.colors.bold.yellow(s) : color_1.
|
|
35
|
-
error: s => (color_1.supportsColor ? color_1.colors.bold.red(s) : color_1.
|
|
36
|
-
fatal: s => (color_1.supportsColor ? color_1.colors.bold.red(s) : color_1.
|
|
32
|
+
info: s => (color_1.supportsColor ? s : color_1.removeColor(s)),
|
|
33
|
+
debug: s => (color_1.supportsColor ? s : color_1.removeColor(s)),
|
|
34
|
+
warn: s => (color_1.supportsColor ? color_1.colors.bold.yellow(s) : color_1.removeColor(s)),
|
|
35
|
+
error: s => (color_1.supportsColor ? color_1.colors.bold.red(s) : color_1.removeColor(s)),
|
|
36
|
+
fatal: s => (color_1.supportsColor ? color_1.colors.bold.red(s) : color_1.removeColor(s)),
|
|
37
37
|
});
|
|
38
38
|
// Redirect console to logger
|
|
39
39
|
console.log = function () {
|
package/lib/config/schema.json
CHANGED
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
"description": "Specifies the source locale of the application.",
|
|
388
388
|
"default": "en-US",
|
|
389
389
|
"$comment": "IETF BCP 47 language tag (simplified)",
|
|
390
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?$"
|
|
390
|
+
"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})+)?$"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
393
|
"type": "object",
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
"code": {
|
|
397
397
|
"type": "string",
|
|
398
398
|
"description": "Specifies the locale code of the source locale",
|
|
399
|
-
"pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-[a-zA-Z]{5,8})?$"
|
|
399
|
+
"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})+)?$"
|
|
400
400
|
},
|
|
401
401
|
"baseHref": {
|
|
402
402
|
"type": "string",
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"type": "object",
|
|
412
412
|
"additionalProperties": false,
|
|
413
413
|
"patternProperties": {
|
|
414
|
-
"^[a-
|
|
414
|
+
"^[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})+)?$": {
|
|
415
415
|
"oneOf": [
|
|
416
416
|
{
|
|
417
417
|
"type": "string",
|
|
@@ -2066,7 +2066,7 @@
|
|
|
2066
2066
|
"minItems": 1,
|
|
2067
2067
|
"items": {
|
|
2068
2068
|
"type": "string",
|
|
2069
|
-
"pattern": "^[a-
|
|
2069
|
+
"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})+)?$"
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.7",
|
|
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.900.
|
|
32
|
-
"@angular-devkit/core": "9.0.
|
|
33
|
-
"@angular-devkit/schematics": "9.0.
|
|
34
|
-
"@schematics/angular": "9.0.
|
|
35
|
-
"@schematics/update": "0.900.
|
|
31
|
+
"@angular-devkit/architect": "0.900.7",
|
|
32
|
+
"@angular-devkit/core": "9.0.7",
|
|
33
|
+
"@angular-devkit/schematics": "9.0.7",
|
|
34
|
+
"@schematics/angular": "9.0.7",
|
|
35
|
+
"@schematics/update": "0.900.7",
|
|
36
36
|
"@yarnpkg/lockfile": "1.1.0",
|
|
37
37
|
"ansi-colors": "4.1.1",
|
|
38
38
|
"debug": "^4.1.1",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"ng-update": {
|
|
53
53
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
54
54
|
"packageGroup": {
|
|
55
|
-
"@angular/cli": "9.0.
|
|
56
|
-
"@angular-devkit/build-angular": "0.900.
|
|
57
|
-
"@angular-devkit/build-ng-packagr": "0.900.
|
|
58
|
-
"@angular-devkit/build-webpack": "0.900.
|
|
59
|
-
"@angular-devkit/core": "9.0.
|
|
60
|
-
"@angular-devkit/schematics": "9.0.
|
|
55
|
+
"@angular/cli": "9.0.7",
|
|
56
|
+
"@angular-devkit/build-angular": "0.900.7",
|
|
57
|
+
"@angular-devkit/build-ng-packagr": "0.900.7",
|
|
58
|
+
"@angular-devkit/build-webpack": "0.900.7",
|
|
59
|
+
"@angular-devkit/core": "9.0.7",
|
|
60
|
+
"@angular-devkit/schematics": "9.0.7"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
package/utilities/color.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
8
|
+
import * as ansiColors from 'ansi-colors';
|
|
9
9
|
export declare const supportsColor: boolean;
|
|
10
|
+
export declare function removeColor(text: string): string;
|
|
11
|
+
declare const colors: typeof ansiColors;
|
|
10
12
|
export { colors };
|
package/utilities/color.js
CHANGED
|
@@ -7,10 +7,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8
8
|
* found in the LICENSE file at https://angular.io/license
|
|
9
9
|
*/
|
|
10
|
-
const
|
|
11
|
-
exports.colors = colors;
|
|
10
|
+
const ansiColors = require("ansi-colors");
|
|
12
11
|
const tty_1 = require("tty");
|
|
13
12
|
// Typings do not contain the function call (added in Node.js v9.9.0)
|
|
14
13
|
exports.supportsColor = process.stdout instanceof tty_1.WriteStream &&
|
|
15
14
|
process.stdout.getColorDepth() > 1;
|
|
15
|
+
function removeColor(text) {
|
|
16
|
+
return text.replace(new RegExp(ansiColors.ansiRegex), '');
|
|
17
|
+
}
|
|
18
|
+
exports.removeColor = removeColor;
|
|
19
|
+
// tslint:disable-next-line: no-any
|
|
20
|
+
const colors = ansiColors.create();
|
|
21
|
+
exports.colors = colors;
|
|
16
22
|
colors.enabled = exports.supportsColor;
|