@angular/cli 20.0.0-next.0 → 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.
@@ -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
  },
@@ -2095,7 +2100,7 @@
2095
2100
  "additionalProperties": false
2096
2101
  },
2097
2102
  "externalDependencies": {
2098
- "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
2103
+ "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`.",
2099
2104
  "type": "array",
2100
2105
  "items": {
2101
2106
  "type": "string"
@@ -3919,7 +3924,7 @@
3919
3924
  "type": "object",
3920
3925
  "properties": {
3921
3926
  "exclude": {
3922
- "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
3927
+ "description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself. Note: specifying `@foo/bar` marks all paths within the `@foo/bar` package as excluded, including sub-paths like `@foo/bar/baz`.",
3923
3928
  "type": "array",
3924
3929
  "items": {
3925
3930
  "type": "string"
@@ -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": "20.0.0-next.0",
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.2000.0-next.0",
29
- "@angular-devkit/core": "20.0.0-next.0",
30
- "@angular-devkit/schematics": "20.0.0-next.0",
31
- "@inquirer/prompts": "7.3.2",
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": "20.0.0-next.0",
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,16 +46,17 @@
46
46
  "ng-update": {
47
47
  "migrations": "@schematics/angular/migrations/migration-collection.json",
48
48
  "packageGroup": {
49
- "@angular/cli": "20.0.0-next.0",
50
- "@angular/build": "20.0.0-next.0",
51
- "@angular/ssr": "20.0.0-next.0",
52
- "@angular-devkit/architect": "0.2000.0-next.0",
53
- "@angular-devkit/build-angular": "20.0.0-next.0",
54
- "@angular-devkit/build-webpack": "0.2000.0-next.0",
55
- "@angular-devkit/core": "20.0.0-next.0",
56
- "@angular-devkit/schematics": "20.0.0-next.0"
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
+ "packageManager": "pnpm@9.15.6",
59
60
  "engines": {
60
61
  "node": "^20.11.1 || >=22.0.0",
61
62
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
@@ -178,21 +178,16 @@ let SchematicsCommandModule = (() => {
178
178
  workflow.registry.addSmartDefaultProvider('projectName', () => this.getProjectName());
179
179
  const workingDir = (0, core_1.normalize)((0, node_path_1.relative)(this.context.root, process.cwd()));
180
180
  workflow.registry.addSmartDefaultProvider('workingDirectory', () => workingDir === '' ? undefined : workingDir);
181
- let shouldReportAnalytics = true;
182
181
  workflow.engineHost.registerOptionsTransform(async (schematic, options) => {
183
- // Report analytics
184
- if (shouldReportAnalytics) {
185
- shouldReportAnalytics = false;
186
- const { collection: { name: collectionName }, name: schematicName, } = schematic;
187
- const analytics = (0, analytics_1.isPackageNameSafeForAnalytics)(collectionName)
188
- ? await this.getAnalytics()
189
- : undefined;
190
- analytics?.reportSchematicRunEvent({
191
- [analytics_parameters_1.EventCustomDimension.SchematicCollectionName]: collectionName,
192
- [analytics_parameters_1.EventCustomDimension.SchematicName]: schematicName,
193
- ...this.getAnalyticsParameters(options),
194
- });
195
- }
182
+ const { collection: { name: collectionName }, name: schematicName, } = schematic;
183
+ const analytics = (0, analytics_1.isPackageNameSafeForAnalytics)(collectionName)
184
+ ? await this.getAnalytics()
185
+ : undefined;
186
+ analytics?.reportSchematicRunEvent({
187
+ [analytics_parameters_1.EventCustomDimension.SchematicCollectionName]: collectionName,
188
+ [analytics_parameters_1.EventCustomDimension.SchematicName]: schematicName,
189
+ ...this.getAnalyticsParameters(options),
190
+ });
196
191
  return options;
197
192
  });
198
193
  if (options.interactive !== false && (0, tty_1.isTTY)()) {
@@ -22,4 +22,4 @@ class Version {
22
22
  this.patch = patch;
23
23
  }
24
24
  }
25
- exports.VERSION = new Version('20.0.0-next.0');
25
+ exports.VERSION = new Version('20.0.0-next.1');