@angular/cli 13.1.0-next.3 → 13.1.0-rc.0
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 +11 -11
- package/commands/deploy-impl.d.ts +1 -1
- package/commands/deploy-impl.js +0 -1
- package/commands/doc-impl.js +4 -8
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -234,26 +234,26 @@ For more informations about Node.js debugging in VS Code, see the related [VS Co
|
|
|
234
234
|
|
|
235
235
|
In order to investigate performance issues, CPU profiling is often useful.
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
#### Creating a profile
|
|
238
238
|
|
|
239
|
-
|
|
240
|
-
1. set the NG_CLI_PROFILING Environment variable to the file name you want:
|
|
241
|
-
- on Unix systems (Linux & Mac OS X): ̀`export NG_CLI_PROFILING=my-profile`
|
|
242
|
-
- on Windows: ̀̀`setx NG_CLI_PROFILING my-profile`
|
|
239
|
+
Node.js 16+ users can use the Node.js command line argument `--cpu-prof` to create a CPU profile.
|
|
243
240
|
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
```bash
|
|
242
|
+
node --cpu-prof node_modules/.bin/ng build
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
In addition to this one, another, more elaborated way to capture a CPU profile using the Chrome Devtools is detailed in https://github.com/angular/angular-cli/issues/8259#issue-269908550.
|
|
246
|
+
|
|
247
|
+
#### Opening a profile
|
|
246
248
|
|
|
247
249
|
You can use the Chrome Devtools to process it. To do so:
|
|
248
250
|
|
|
249
|
-
1. open `chrome://inspect
|
|
251
|
+
1. open `chrome://inspect` in Chrome
|
|
250
252
|
1. click on "Open dedicated DevTools for Node"
|
|
251
253
|
1. go to the "profiler" tab
|
|
252
|
-
1. click on the "Load" button and select the generated
|
|
254
|
+
1. click on the "Load" button and select the generated `.cpuprofile` file
|
|
253
255
|
1. on the left panel, select the associated file
|
|
254
256
|
|
|
255
|
-
In addition to this one, another, more elaborated way to capture a CPU profile using the Chrome Devtools is detailed in https://github.com/angular/angular-cli/issues/8259#issue-269908550.
|
|
256
|
-
|
|
257
257
|
## Documentation
|
|
258
258
|
|
|
259
259
|
The documentation for the Angular CLI is located on our [documentation website](https://angular.io/cli).
|
|
@@ -10,6 +10,6 @@ import { Arguments } from '../models/interface';
|
|
|
10
10
|
import { Schema as DeployCommandSchema } from './deploy';
|
|
11
11
|
export declare class DeployCommand extends ArchitectCommand<DeployCommandSchema> {
|
|
12
12
|
readonly target = "deploy";
|
|
13
|
-
readonly missingTargetError = "\nCannot find \"deploy\" target for the specified project.\n\nYou should add a package that implements deployment capabilities for your\nfavorite platform.\n\nFor example:\n ng add @angular/fire\n ng add @azure/ng-deploy\n
|
|
13
|
+
readonly missingTargetError = "\nCannot find \"deploy\" target for the specified project.\n\nYou should add a package that implements deployment capabilities for your\nfavorite platform.\n\nFor example:\n ng add @angular/fire\n ng add @azure/ng-deploy\n\nFind more packages on npm https://www.npmjs.com/search?q=ng%20deploy\n";
|
|
14
14
|
initialize(options: DeployCommandSchema & Arguments): Promise<number | void>;
|
|
15
15
|
}
|
package/commands/deploy-impl.js
CHANGED
package/commands/doc-impl.js
CHANGED
|
@@ -61,15 +61,11 @@ class DocCommand extends command_1.Command {
|
|
|
61
61
|
const currentNgVersion = (await Promise.resolve().then(() => __importStar(require('@angular/core')))).VERSION.major;
|
|
62
62
|
domain = `v${currentNgVersion}.angular.io`;
|
|
63
63
|
}
|
|
64
|
-
catch
|
|
64
|
+
catch { }
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
await (0, open_1.default)(searchUrl, {
|
|
71
|
-
wait: false,
|
|
72
|
-
});
|
|
66
|
+
await (0, open_1.default)(options.search
|
|
67
|
+
? `https://${domain}/api?query=${options.keyword}`
|
|
68
|
+
: `https://${domain}/docs?search=${options.keyword}`);
|
|
73
69
|
}
|
|
74
70
|
}
|
|
75
71
|
exports.DocCommand = DocCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "13.1.0-
|
|
3
|
+
"version": "13.1.0-rc.0",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.1301.0-
|
|
32
|
-
"@angular-devkit/core": "13.1.0-
|
|
33
|
-
"@angular-devkit/schematics": "13.1.0-
|
|
34
|
-
"@schematics/angular": "13.1.0-
|
|
31
|
+
"@angular-devkit/architect": "0.1301.0-rc.0",
|
|
32
|
+
"@angular-devkit/core": "13.1.0-rc.0",
|
|
33
|
+
"@angular-devkit/schematics": "13.1.0-rc.0",
|
|
34
|
+
"@schematics/angular": "13.1.0-rc.0",
|
|
35
35
|
"@yarnpkg/lockfile": "1.1.0",
|
|
36
36
|
"ansi-colors": "4.1.1",
|
|
37
37
|
"debug": "4.3.3",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"ng-update": {
|
|
52
52
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
53
53
|
"packageGroup": {
|
|
54
|
-
"@angular/cli": "13.1.0-
|
|
55
|
-
"@angular-devkit/architect": "0.1301.0-
|
|
56
|
-
"@angular-devkit/build-angular": "13.1.0-
|
|
57
|
-
"@angular-devkit/build-webpack": "0.1301.0-
|
|
58
|
-
"@angular-devkit/core": "13.1.0-
|
|
59
|
-
"@angular-devkit/schematics": "13.1.0-
|
|
54
|
+
"@angular/cli": "13.1.0-rc.0",
|
|
55
|
+
"@angular-devkit/architect": "0.1301.0-rc.0",
|
|
56
|
+
"@angular-devkit/build-angular": "13.1.0-rc.0",
|
|
57
|
+
"@angular-devkit/build-webpack": "0.1301.0-rc.0",
|
|
58
|
+
"@angular-devkit/core": "13.1.0-rc.0",
|
|
59
|
+
"@angular-devkit/schematics": "13.1.0-rc.0"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|