@angular/cli 13.1.0-next.3 → 13.1.2

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 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
- To capture a CPU profiling, you can:
237
+ #### Creating a profile
238
238
 
239
- 1. install the v8-profiler-node8 dependency: `npm install v8-profiler-node8 --no-save`
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
- Then, just run the ng command on which you want to capture a CPU profile.
245
- You will then obtain a `my-profile.cpuprofile` file in the folder from which you ran the ng command.
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/#devices` in Chrome
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 .cpuprofile file
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 ng add @zeit/ng-deploy\n\nFind more packages on npm https://www.npmjs.com/search?q=ng%20deploy\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
  }
@@ -18,7 +18,6 @@ favorite platform.
18
18
  For example:
19
19
  ng add @angular/fire
20
20
  ng add @azure/ng-deploy
21
- ng add @zeit/ng-deploy
22
21
 
23
22
  Find more packages on npm https://www.npmjs.com/search?q=ng%20deploy
24
23
  `;
@@ -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 (e) { }
64
+ catch { }
65
65
  }
66
- let searchUrl = `https://${domain}/api?query=${options.keyword}`;
67
- if (options.search) {
68
- searchUrl = `https://${domain}/docs?search=${options.keyword}`;
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-next.3",
3
+ "version": "13.1.2",
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-next.3",
32
- "@angular-devkit/core": "13.1.0-next.3",
33
- "@angular-devkit/schematics": "13.1.0-next.3",
34
- "@schematics/angular": "13.1.0-next.3",
31
+ "@angular-devkit/architect": "0.1301.2",
32
+ "@angular-devkit/core": "13.1.2",
33
+ "@angular-devkit/schematics": "13.1.2",
34
+ "@schematics/angular": "13.1.2",
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-next.3",
55
- "@angular-devkit/architect": "0.1301.0-next.3",
56
- "@angular-devkit/build-angular": "13.1.0-next.3",
57
- "@angular-devkit/build-webpack": "0.1301.0-next.3",
58
- "@angular-devkit/core": "13.1.0-next.3",
59
- "@angular-devkit/schematics": "13.1.0-next.3"
54
+ "@angular/cli": "13.1.2",
55
+ "@angular-devkit/architect": "0.1301.2",
56
+ "@angular-devkit/build-angular": "13.1.2",
57
+ "@angular-devkit/build-webpack": "0.1301.2",
58
+ "@angular-devkit/core": "13.1.2",
59
+ "@angular-devkit/schematics": "13.1.2"
60
60
  }
61
61
  },
62
62
  "engines": {