@schematics/angular 20.0.4 → 20.1.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.
@@ -134,15 +134,11 @@
134
134
  --pill-accent: var(--bright-blue);
135
135
  }
136
136
  .pill-group .pill:nth-child(6n + 2) {
137
- --pill-accent: var(--electric-violet);
138
- }
139
- .pill-group .pill:nth-child(6n + 3) {
140
137
  --pill-accent: var(--french-violet);
141
138
  }
142
-
139
+ .pill-group .pill:nth-child(6n + 3),
143
140
  .pill-group .pill:nth-child(6n + 4),
144
- .pill-group .pill:nth-child(6n + 5),
145
- .pill-group .pill:nth-child(6n + 6) {
141
+ .pill-group .pill:nth-child(6n + 5) {
146
142
  --pill-accent: var(--hot-red);
147
143
  }
148
144
 
@@ -229,7 +225,7 @@
229
225
  <clipPath id="a"><path fill="#fff" d="M0 0h982v239H0z" /></clipPath>
230
226
  </defs>
231
227
  </svg>
232
- <h1>Hello, {{ title }}</h1>
228
+ <h1>Hello, {{ title() }}</h1>
233
229
  <p>Congratulations! Your app is running. 🎉</p>
234
230
  </div>
235
231
  <div class="divider" role="separator" aria-label="Divider"></div>
@@ -238,7 +234,6 @@
238
234
  @for (item of [
239
235
  { title: 'Explore the Docs', link: 'https://angular.dev' },
240
236
  { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' },
241
- { title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'},
242
237
  { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
243
238
  { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
244
239
  { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },
@@ -1,9 +1,9 @@
1
- import { Component } from '@angular/core';
1
+ import { Component, signal } from '@angular/core';
2
2
 
3
3
  @Component({
4
4
  selector: '<%= selector %>',<% if(inlineTemplate) { %>
5
5
  template: `
6
- <h1>Welcome to {{title}}!</h1>
6
+ <h1>Welcome to {{ title() }}!</h1>
7
7
 
8
8
  <% if (routing) {
9
9
  %><router-outlet /><%
@@ -15,5 +15,5 @@ import { Component } from '@angular/core';
15
15
  styleUrl: './app.<%= style %>'<% } %>
16
16
  })
17
17
  export class App {
18
- protected title = '<%= name %>';
18
+ protected readonly title = signal('<%= name %>');
19
19
  }
@@ -1,11 +1,11 @@
1
- import { Component } from '@angular/core';<% if(routing) { %>
1
+ import { Component, signal } from '@angular/core';<% if(routing) { %>
2
2
  import { RouterOutlet } from '@angular/router';<% } %>
3
3
 
4
4
  @Component({
5
5
  selector: '<%= selector %>',
6
6
  imports: [<% if(routing) { %>RouterOutlet<% } %>],<% if(inlineTemplate) { %>
7
7
  template: `
8
- <h1>Welcome to {{title}}!</h1>
8
+ <h1>Welcome to {{ title() }}!</h1>
9
9
 
10
10
  <% if (routing) {
11
11
  %><router-outlet /><%
@@ -16,5 +16,5 @@ import { RouterOutlet } from '@angular/router';<% } %>
16
16
  styleUrl: './app.<%= style %>'<% } %>
17
17
  })
18
18
  export class App {
19
- protected title = '<%= name %>';
19
+ protected readonly title = signal('<%= name %>');
20
20
  }
@@ -49,7 +49,6 @@ function default_1(options) {
49
49
  routingScope: 'Root',
50
50
  path: sourceDir,
51
51
  project: options.name,
52
- typeSeparator: undefined,
53
52
  }),
54
53
  (0, schematics_1.schematic)('component', {
55
54
  name: 'app',
@@ -29,12 +29,12 @@ export type Schema = {
29
29
  flat?: boolean;
30
30
  /**
31
31
  * Include the component's styles directly in the `component.ts` file. By default, a
32
- * separate stylesheet file (e.g., `my-component.css`) is created.
32
+ * separate stylesheet file (e.g., `my-component.component.css`) is created.
33
33
  */
34
34
  inlineStyle?: boolean;
35
35
  /**
36
36
  * Include the component's HTML template directly in the `component.ts` file. By default, a
37
- * separate template file (e.g., `my-component.html`) is created.
37
+ * separate template file (e.g., `my-component.component.html`) is created.
38
38
  */
39
39
  inlineTemplate?: boolean;
40
40
  /**
@@ -45,7 +45,8 @@ export type Schema = {
45
45
  /**
46
46
  * The name for the new component. This will be used to create the component's class,
47
47
  * template, and stylesheet files. For example, if you provide `my-component`, the files
48
- * will be named `my-component.ts`, `my-component.html`, and `my-component.css`.
48
+ * will be named `my-component.component.ts`, `my-component.component.html`, and
49
+ * `my-component.component.css`.
49
50
  */
50
51
  name: string;
51
52
  /**
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "name": {
26
26
  "type": "string",
27
- "description": "The name for the new component. This will be used to create the component's class, template, and stylesheet files. For example, if you provide `my-component`, the files will be named `my-component.ts`, `my-component.html`, and `my-component.css`.",
27
+ "description": "The name for the new component. This will be used to create the component's class, template, and stylesheet files. For example, if you provide `my-component`, the files will be named `my-component.component.ts`, `my-component.component.html`, and `my-component.component.css`.",
28
28
  "$default": {
29
29
  "$source": "argv",
30
30
  "index": 0
@@ -38,14 +38,14 @@
38
38
  "alias": "b"
39
39
  },
40
40
  "inlineStyle": {
41
- "description": "Include the component's styles directly in the `component.ts` file. By default, a separate stylesheet file (e.g., `my-component.css`) is created.",
41
+ "description": "Include the component's styles directly in the `component.ts` file. By default, a separate stylesheet file (e.g., `my-component.component.css`) is created.",
42
42
  "type": "boolean",
43
43
  "default": false,
44
44
  "alias": "s",
45
45
  "x-user-analytics": "ep.ng_inline_style"
46
46
  },
47
47
  "inlineTemplate": {
48
- "description": "Include the component's HTML template directly in the `component.ts` file. By default, a separate template file (e.g., `my-component.html`) is created.",
48
+ "description": "Include the component's HTML template directly in the `component.ts` file. By default, a separate template file (e.g., `my-component.component.html`) is created.",
49
49
  "type": "boolean",
50
50
  "default": false,
51
51
  "alias": "t",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "20.0.4",
3
+ "version": "20.1.0-next.1",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "schematics": "./collection.json",
24
24
  "dependencies": {
25
- "@angular-devkit/core": "20.0.4",
26
- "@angular-devkit/schematics": "20.0.4",
25
+ "@angular-devkit/core": "20.1.0-next.1",
26
+ "@angular-devkit/schematics": "20.1.0-next.1",
27
27
  "jsonc-parser": "3.3.1"
28
28
  },
29
29
  "repository": {
package/server/index.js CHANGED
@@ -95,14 +95,6 @@ function updateConfigFileApplicationBuilder(options) {
95
95
  function updateTsConfigFile(tsConfigPath) {
96
96
  return (host) => {
97
97
  const json = new json_file_1.JSONFile(host, tsConfigPath);
98
- // Skip adding the files entry if the server entry would already be included.
99
- const include = json.get(['include']);
100
- if (!Array.isArray(include) || !include.includes('src/**/*.ts')) {
101
- const filesPath = ['files'];
102
- const files = new Set(json.get(filesPath) ?? []);
103
- files.add('src/' + serverMainEntryName);
104
- json.modify(filesPath, [...files]);
105
- }
106
98
  const typePath = ['compilerOptions', 'types'];
107
99
  const types = new Set(json.get(typePath) ?? []);
108
100
  types.add('node');
@@ -8,7 +8,7 @@
8
8
  "@types/node": "^20.17.19",
9
9
  "browser-sync": "^3.0.0",
10
10
  "express": "^5.1.0",
11
- "jasmine-core": "~5.7.0",
11
+ "jasmine-core": "~5.8.0",
12
12
  "jasmine-spec-reporter": "~7.0.0",
13
13
  "karma-chrome-launcher": "~3.2.0",
14
14
  "karma-coverage": "~2.2.0",
@@ -14,9 +14,9 @@ const dependencies = require('./latest-versions/package.json')['dependencies'];
14
14
  exports.latestVersions = {
15
15
  ...dependencies,
16
16
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
17
- Angular: '^20.0.0',
18
- NgPackagr: '^20.0.0',
19
- DevkitBuildAngular: '^20.0.4',
20
- AngularBuild: '^20.0.4',
21
- AngularSSR: '^20.0.4',
17
+ Angular: '^20.1.0-next.0',
18
+ NgPackagr: '^20.1.0-next.0',
19
+ DevkitBuildAngular: '^20.1.0-next.1',
20
+ AngularBuild: '^20.1.0-next.1',
21
+ AngularSSR: '^20.1.0-next.1',
22
22
  };
@@ -8,16 +8,6 @@
8
8
  "watch": "ng build --watch --configuration development"<% if (!minimal) { %>,
9
9
  "test": "ng test"<% } %>
10
10
  },
11
- "prettier": {
12
- "overrides": [
13
- {
14
- "files": "*.html",
15
- "options": {
16
- "parser": "angular"
17
- }
18
- }
19
- ]
20
- },
21
11
  "private": true,
22
12
  "dependencies": {
23
13
  "@angular/common": "<%= latestVersions.Angular %>",