@schematics/angular 20.0.2 → 20.0.4
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/application/files/common-files/src/app/app.html.template +7 -2
- package/application/index.js +1 -0
- package/component/schema.d.ts +3 -4
- package/component/schema.json +3 -3
- package/package.json +3 -3
- package/server/index.js +8 -0
- package/utility/latest-versions.js +3 -3
- package/workspace/files/package.json.template +10 -0
|
@@ -134,11 +134,15 @@
|
|
|
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) {
|
|
137
140
|
--pill-accent: var(--french-violet);
|
|
138
141
|
}
|
|
139
|
-
|
|
142
|
+
|
|
140
143
|
.pill-group .pill:nth-child(6n + 4),
|
|
141
|
-
.pill-group .pill:nth-child(6n + 5)
|
|
144
|
+
.pill-group .pill:nth-child(6n + 5),
|
|
145
|
+
.pill-group .pill:nth-child(6n + 6) {
|
|
142
146
|
--pill-accent: var(--hot-red);
|
|
143
147
|
}
|
|
144
148
|
|
|
@@ -234,6 +238,7 @@
|
|
|
234
238
|
@for (item of [
|
|
235
239
|
{ title: 'Explore the Docs', link: 'https://angular.dev' },
|
|
236
240
|
{ 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'},
|
|
237
242
|
{ title: 'CLI Docs', link: 'https://angular.dev/tools/cli' },
|
|
238
243
|
{ title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' },
|
|
239
244
|
{ title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' },
|
package/application/index.js
CHANGED
package/component/schema.d.ts
CHANGED
|
@@ -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.
|
|
32
|
+
* separate stylesheet file (e.g., `my-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.
|
|
37
|
+
* separate template file (e.g., `my-component.html`) is created.
|
|
38
38
|
*/
|
|
39
39
|
inlineTemplate?: boolean;
|
|
40
40
|
/**
|
|
@@ -45,8 +45,7 @@ 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.
|
|
49
|
-
* `my-component.component.css`.
|
|
48
|
+
* will be named `my-component.ts`, `my-component.html`, and `my-component.css`.
|
|
50
49
|
*/
|
|
51
50
|
name: string;
|
|
52
51
|
/**
|
package/component/schema.json
CHANGED
|
@@ -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.
|
|
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`.",
|
|
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.
|
|
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.",
|
|
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.
|
|
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.",
|
|
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.
|
|
3
|
+
"version": "20.0.4",
|
|
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.
|
|
26
|
-
"@angular-devkit/schematics": "20.0.
|
|
25
|
+
"@angular-devkit/core": "20.0.4",
|
|
26
|
+
"@angular-devkit/schematics": "20.0.4",
|
|
27
27
|
"jsonc-parser": "3.3.1"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
package/server/index.js
CHANGED
|
@@ -95,6 +95,14 @@ 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
|
+
}
|
|
98
106
|
const typePath = ['compilerOptions', 'types'];
|
|
99
107
|
const types = new Set(json.get(typePath) ?? []);
|
|
100
108
|
types.add('node');
|
|
@@ -16,7 +16,7 @@ exports.latestVersions = {
|
|
|
16
16
|
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
|
|
17
17
|
Angular: '^20.0.0',
|
|
18
18
|
NgPackagr: '^20.0.0',
|
|
19
|
-
DevkitBuildAngular: '^20.0.
|
|
20
|
-
AngularBuild: '^20.0.
|
|
21
|
-
AngularSSR: '^20.0.
|
|
19
|
+
DevkitBuildAngular: '^20.0.4',
|
|
20
|
+
AngularBuild: '^20.0.4',
|
|
21
|
+
AngularSSR: '^20.0.4',
|
|
22
22
|
};
|
|
@@ -8,6 +8,16 @@
|
|
|
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
|
+
},
|
|
11
21
|
"private": true,
|
|
12
22
|
"dependencies": {
|
|
13
23
|
"@angular/common": "<%= latestVersions.Angular %>",
|