@schematics/angular 20.2.0 → 20.2.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/ai-config/index.js
CHANGED
|
@@ -39,11 +39,13 @@ const AI_TOOLS = {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
function default_1({ tool }) {
|
|
42
|
-
if (!tool
|
|
42
|
+
if (!tool) {
|
|
43
43
|
return (0, schematics_1.noop)();
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const rules = tool
|
|
46
|
+
.filter((tool) => tool !== schema_1.Tool.None)
|
|
47
|
+
.map((selectedTool) => AI_TOOLS[selectedTool])
|
|
48
|
+
.map(({ rulesName, directory, frontmatter }) => (0, schematics_1.mergeWith)((0, schematics_1.apply)((0, schematics_1.url)('./files'), [
|
|
47
49
|
(0, schematics_1.applyTemplates)({
|
|
48
50
|
...schematics_1.strings,
|
|
49
51
|
rulesName,
|
package/ai-config/schema.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"tool": {
|
|
10
10
|
"type": "array",
|
|
11
11
|
"uniqueItems": true,
|
|
12
|
-
"default": "none",
|
|
12
|
+
"default": ["none"],
|
|
13
13
|
"x-prompt": {
|
|
14
14
|
"message": "Which AI tools do you want to configure with Angular best practices? https://angular.dev/ai/develop-with-ai",
|
|
15
15
|
"type": "list",
|
|
@@ -50,21 +50,5 @@
|
|
|
50
50
|
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf"]
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
"if": {
|
|
55
|
-
"properties": {
|
|
56
|
-
"tool": {
|
|
57
|
-
"contains": {
|
|
58
|
-
"const": "none"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"then": {
|
|
64
|
-
"properties": {
|
|
65
|
-
"tool": {
|
|
66
|
-
"maxItems": 1
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
53
|
}
|
|
70
54
|
}
|
|
@@ -27,7 +27,7 @@ const karma_config_analyzer_1 = require("./karma-config-analyzer");
|
|
|
27
27
|
* @returns The content of the default `karma.conf.js` file.
|
|
28
28
|
*/
|
|
29
29
|
async function generateDefaultKarmaConfig(relativePathToWorkspaceRoot, projectName, needDevkitPlugin) {
|
|
30
|
-
const templatePath =
|
|
30
|
+
const templatePath = require.resolve('../../config/files/karma.conf.js.template');
|
|
31
31
|
let template = await (0, promises_1.readFile)(templatePath, 'utf-8');
|
|
32
32
|
// TODO: Replace this with the actual schematic templating logic.
|
|
33
33
|
template = template
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "20.2.
|
|
3
|
+
"version": "20.2.2",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
},
|
|
23
23
|
"schematics": "./collection.json",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@angular-devkit/core": "20.2.
|
|
26
|
-
"@angular-devkit/schematics": "20.2.
|
|
25
|
+
"@angular-devkit/core": "20.2.2",
|
|
26
|
+
"@angular-devkit/schematics": "20.2.2",
|
|
27
27
|
"jsonc-parser": "3.3.1"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "https://github.com/angular/angular-cli.git"
|
|
32
32
|
},
|
|
33
|
-
"packageManager": "pnpm@10.
|
|
33
|
+
"packageManager": "pnpm@10.15.1",
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
36
36
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
@@ -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.2.0',
|
|
18
18
|
NgPackagr: '^20.2.0',
|
|
19
|
-
DevkitBuildAngular: '^20.2.
|
|
20
|
-
AngularBuild: '^20.2.
|
|
21
|
-
AngularSSR: '^20.2.
|
|
19
|
+
DevkitBuildAngular: '^20.2.2',
|
|
20
|
+
AngularBuild: '^20.2.2',
|
|
21
|
+
AngularSSR: '^20.2.2',
|
|
22
22
|
};
|