@angular/cli 19.2.2 → 20.0.0-next.1
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/bin/ng.js +3 -3
- package/lib/cli/index.js +1 -1
- package/lib/config/schema.json +5 -0
- package/lib/config/workspace-schema.d.ts +5 -0
- package/package.json +15 -15
- package/src/command-builder/command-runner.js +1 -1
- package/src/commands/version/cli.js +1 -1
- package/src/utilities/version.js +1 -1
package/bin/ng.js
CHANGED
|
@@ -55,13 +55,13 @@ if (version[0] % 2 === 1) {
|
|
|
55
55
|
);
|
|
56
56
|
|
|
57
57
|
require('./bootstrap');
|
|
58
|
-
} else if (version[0] <
|
|
59
|
-
// Error and exit if less than
|
|
58
|
+
} else if (version[0] < 20 || (version[0] === 20 && version[1] < 11)) {
|
|
59
|
+
// Error and exit if less than 20.11
|
|
60
60
|
console.error(
|
|
61
61
|
'Node.js version ' +
|
|
62
62
|
process.version +
|
|
63
63
|
' detected.\n' +
|
|
64
|
-
'The Angular CLI requires a minimum Node.js version of
|
|
64
|
+
'The Angular CLI requires a minimum Node.js version of v20.11.\n\n' +
|
|
65
65
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
|
|
66
66
|
);
|
|
67
67
|
|
package/lib/cli/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const environment_options_1 = require("../../src/utilities/environment-options")
|
|
|
18
18
|
const log_file_1 = require("../../src/utilities/log-file");
|
|
19
19
|
var version_1 = require("../../src/utilities/version");
|
|
20
20
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
|
21
|
-
const MIN_NODEJS_VERSION = [
|
|
21
|
+
const MIN_NODEJS_VERSION = [20, 11];
|
|
22
22
|
/* eslint-disable no-console */
|
|
23
23
|
async function default_1(options) {
|
|
24
24
|
// This node version check ensures that the requirements of the project instance of the CLI are met
|
package/lib/config/schema.json
CHANGED
|
@@ -1218,6 +1218,11 @@
|
|
|
1218
1218
|
"type": "boolean",
|
|
1219
1219
|
"default": false,
|
|
1220
1220
|
"description": "Use a default export for the component in its TypeScript file instead of a named export."
|
|
1221
|
+
},
|
|
1222
|
+
"ngHtml": {
|
|
1223
|
+
"type": "boolean",
|
|
1224
|
+
"default": true,
|
|
1225
|
+
"description": "Generate component template files with an '.ng.html' file extension instead of '.html'. The '.ng.html' file extension is recommended by the Angular style guide."
|
|
1221
1226
|
}
|
|
1222
1227
|
}
|
|
1223
1228
|
},
|
|
@@ -303,6 +303,11 @@ export type AngularComponentOptionsSchema = {
|
|
|
303
303
|
* `my-component.component.css`.
|
|
304
304
|
*/
|
|
305
305
|
name: string;
|
|
306
|
+
/**
|
|
307
|
+
* Generate component template files with an '.ng.html' file extension instead of '.html'.
|
|
308
|
+
* The '.ng.html' file extension is recommended by the Angular style guide.
|
|
309
|
+
*/
|
|
310
|
+
ngHtml?: boolean;
|
|
306
311
|
/**
|
|
307
312
|
* The path where the component files should be created, relative to the current workspace.
|
|
308
313
|
* If not provided, a folder with the same name as the component will be created in the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-next.1",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.
|
|
29
|
-
"@angular-devkit/core": "
|
|
30
|
-
"@angular-devkit/schematics": "
|
|
31
|
-
"@inquirer/prompts": "7.3.
|
|
28
|
+
"@angular-devkit/architect": "0.2000.0-next.1",
|
|
29
|
+
"@angular-devkit/core": "20.0.0-next.1",
|
|
30
|
+
"@angular-devkit/schematics": "20.0.0-next.1",
|
|
31
|
+
"@inquirer/prompts": "7.3.3",
|
|
32
32
|
"@listr2/prompt-adapter-inquirer": "2.0.18",
|
|
33
|
-
"@schematics/angular": "
|
|
33
|
+
"@schematics/angular": "20.0.0-next.1",
|
|
34
34
|
"@yarnpkg/lockfile": "1.1.0",
|
|
35
35
|
"ini": "5.0.0",
|
|
36
36
|
"jsonc-parser": "3.3.1",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"ng-update": {
|
|
47
47
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
48
48
|
"packageGroup": {
|
|
49
|
-
"@angular/cli": "
|
|
50
|
-
"@angular/build": "
|
|
51
|
-
"@angular/ssr": "
|
|
52
|
-
"@angular-devkit/architect": "0.
|
|
53
|
-
"@angular-devkit/build-angular": "
|
|
54
|
-
"@angular-devkit/build-webpack": "0.
|
|
55
|
-
"@angular-devkit/core": "
|
|
56
|
-
"@angular-devkit/schematics": "
|
|
49
|
+
"@angular/cli": "20.0.0-next.1",
|
|
50
|
+
"@angular/build": "20.0.0-next.1",
|
|
51
|
+
"@angular/ssr": "20.0.0-next.1",
|
|
52
|
+
"@angular-devkit/architect": "0.2000.0-next.1",
|
|
53
|
+
"@angular-devkit/build-angular": "20.0.0-next.1",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.2000.0-next.1",
|
|
55
|
+
"@angular-devkit/core": "20.0.0-next.1",
|
|
56
|
+
"@angular-devkit/schematics": "20.0.0-next.1"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"packageManager": "pnpm@9.15.6",
|
|
60
60
|
"engines": {
|
|
61
|
-
"node": "^
|
|
61
|
+
"node": "^20.11.1 || >=22.0.0",
|
|
62
62
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
63
63
|
"yarn": ">= 1.13.0"
|
|
64
64
|
}
|
|
@@ -18,7 +18,7 @@ const command_config_1 = require("../command-config");
|
|
|
18
18
|
/**
|
|
19
19
|
* Major versions of Node.js that are officially supported by Angular.
|
|
20
20
|
*/
|
|
21
|
-
const SUPPORTED_NODE_MAJORS = [
|
|
21
|
+
const SUPPORTED_NODE_MAJORS = [20, 22];
|
|
22
22
|
const PACKAGE_PATTERNS = [
|
|
23
23
|
/^@angular\/.*/,
|
|
24
24
|
/^@angular-devkit\/.*/,
|
package/src/utilities/version.js
CHANGED