igniteui-cli 15.0.0-rc.1 → 15.0.0-rc.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/bin/execute.js +6 -2
- package/lib/PromptSession.js +2 -1
- package/lib/cli.js +2 -0
- package/lib/commands/ai-config.d.ts +1 -1
- package/lib/commands/ai-config.js +16 -7
- package/package.json +4 -4
- package/templates/react/igr-ts/projects/_base/files/AGENTS.md +5 -0
- package/templates/webcomponents/igc-ts/projects/_base/files/AGENTS.md +6 -0
package/bin/execute.js
CHANGED
|
@@ -13,9 +13,13 @@ resolve("igniteui-cli", { basedir: process.cwd() }, function (err, res) {
|
|
|
13
13
|
const localVersion = require(path.join(process.cwd(), "node_modules/igniteui-cli/package.json"))["version"];
|
|
14
14
|
const globalVersion = require(path.join(__dirname, "../package.json"))["version"];
|
|
15
15
|
if (globalVersion !== localVersion) {
|
|
16
|
-
console.log("Different igniteui-cli global and local version");
|
|
16
|
+
console.log("Different igniteui-cli global and local version");
|
|
17
|
+
}
|
|
18
|
+
if (args[0] === "ai-config") {
|
|
19
|
+
cli = require("../lib/cli");
|
|
20
|
+
} else {
|
|
21
|
+
cli = require(res);
|
|
17
22
|
}
|
|
18
|
-
cli = require(res);
|
|
19
23
|
} else {
|
|
20
24
|
cli = require("../lib/cli");
|
|
21
25
|
}
|
package/lib/PromptSession.js
CHANGED
|
@@ -136,7 +136,8 @@ class PromptSession extends cli_core_1.BasePromptSession {
|
|
|
136
136
|
}
|
|
137
137
|
configureAI() {
|
|
138
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
-
|
|
139
|
+
// skip adding skills since those are baked into the project template atm:
|
|
140
|
+
(0, ai_config_1.configure)(false);
|
|
140
141
|
});
|
|
141
142
|
}
|
|
142
143
|
/**
|
package/lib/cli.js
CHANGED
|
@@ -29,6 +29,8 @@ function run() {
|
|
|
29
29
|
return __awaiter(this, arguments, void 0, function* (args = null) {
|
|
30
30
|
cli_core_1.App.initialize();
|
|
31
31
|
const templateManager = new TemplateManager_1.TemplateManager();
|
|
32
|
+
// TODO: Refactor all code to use TemplateManager from the App container:
|
|
33
|
+
cli_core_1.App.container.set(cli_core_1.TEMPLATE_MANAGER, templateManager);
|
|
32
34
|
commands_1.newCommand.addChoices(templateManager.getFrameworkIds());
|
|
33
35
|
commands_1.newCommand.templateManager = templateManager;
|
|
34
36
|
commands_1.add.templateManager = templateManager;
|
|
@@ -2,6 +2,6 @@ import { IFileSystem } from "@igniteui/cli-core";
|
|
|
2
2
|
import { CommandModule } from "yargs";
|
|
3
3
|
export declare function configureMCP(fileSystem?: IFileSystem): void;
|
|
4
4
|
export declare function configureSkills(): void;
|
|
5
|
-
export declare function configure(
|
|
5
|
+
export declare function configure(skills?: boolean): void;
|
|
6
6
|
declare const command: CommandModule;
|
|
7
7
|
export default command;
|
|
@@ -83,17 +83,26 @@ function configureMCP(fileSystem = new cli_core_1.FsFileSystem()) {
|
|
|
83
83
|
}
|
|
84
84
|
function configureSkills() {
|
|
85
85
|
const result = (0, cli_core_1.copyAISkillsToProject)();
|
|
86
|
-
if (result ===
|
|
87
|
-
cli_core_1.Util.
|
|
86
|
+
if (result.found === 0) {
|
|
87
|
+
cli_core_1.Util.warn("No AI skill files found. Make sure packages are installed (npm install) " +
|
|
88
|
+
"and your Ignite UI packages are up-to-date.", "yellow");
|
|
89
|
+
}
|
|
90
|
+
else if (result.failed > 0) {
|
|
91
|
+
cli_core_1.Util.warn(`Failed to write ${result.failed} skill file(s) out of ${result.found}.`, "yellow");
|
|
92
|
+
}
|
|
93
|
+
else if (result.skipped === result.found) {
|
|
94
|
+
cli_core_1.Util.log("Everything is already up-to-date.");
|
|
88
95
|
}
|
|
89
96
|
else {
|
|
90
|
-
|
|
91
|
-
|
|
97
|
+
const written = result.found - result.skipped;
|
|
98
|
+
cli_core_1.Util.log(cli_core_1.Util.greenCheck() + ` ${written} AI skill file(s) created or updated.`);
|
|
92
99
|
}
|
|
93
100
|
}
|
|
94
|
-
function configure(
|
|
95
|
-
configureMCP(
|
|
96
|
-
|
|
101
|
+
function configure(skills = true) {
|
|
102
|
+
configureMCP();
|
|
103
|
+
if (skills) {
|
|
104
|
+
configureSkills();
|
|
105
|
+
}
|
|
97
106
|
}
|
|
98
107
|
const command = {
|
|
99
108
|
command: "ai-config",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.2",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"all": true
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@igniteui/angular-templates": "~21.1.1500-rc.
|
|
70
|
-
"@igniteui/cli-core": "~15.0.0-rc.
|
|
71
|
-
"@igniteui/mcp-server": "~15.0.0-rc.
|
|
69
|
+
"@igniteui/angular-templates": "~21.1.1500-rc.2",
|
|
70
|
+
"@igniteui/cli-core": "~15.0.0-rc.2",
|
|
71
|
+
"@igniteui/mcp-server": "~15.0.0-rc.2",
|
|
72
72
|
"@inquirer/prompts": "^7.9.0",
|
|
73
73
|
"@types/yargs": "^17.0.33",
|
|
74
74
|
"chalk": "^5.3.0",
|
|
@@ -109,3 +109,8 @@ You are an expert in building front-end web applications with React with deep kn
|
|
|
109
109
|
## UI Components
|
|
110
110
|
|
|
111
111
|
- Use `igniteui-react`.
|
|
112
|
+
- Use `igniteui-react-grids` for advanced grids.
|
|
113
|
+
- Use `igniteui-react` and `igniteui-grid-lite` for Grid Lite; import from `igniteui-react/grid-lite`.
|
|
114
|
+
- Use `igniteui-react-charts`, `igniteui-react-gauges`, and `igniteui-react-maps` for charts, gauges, and maps.
|
|
115
|
+
- For package-specific components such as grids, Grid Lite, charts, gauges, and maps, do not assume they come from `igniteui-react`; follow `.claude/skills/igniteui-react-components/SKILL.md` to choose the correct package and imports.
|
|
116
|
+
- If the required Ignite UI package is not present in `package.json`, add or install the correct dependency first.
|
|
@@ -31,3 +31,9 @@ You are an expert in building front-end web applications. You have a strong unde
|
|
|
31
31
|
## UI Components
|
|
32
32
|
|
|
33
33
|
- Use `igniteui-webcomponents`.
|
|
34
|
+
- Use `igniteui-webcomponents-charts` for charts and data visualization.
|
|
35
|
+
- Use `igniteui-webcomponents-grids` for advanced grids.
|
|
36
|
+
- Use `igniteui-grid-lite` for Grid Lite.
|
|
37
|
+
- Use `igniteui-dockmanager` for Dock Manager.
|
|
38
|
+
- For package-specific components such as charts, advanced grids, Grid Lite, and Dock Manager, do not assume they come from `igniteui-webcomponents`; follow `.claude/skills/igniteui-wc-choose-components/SKILL.md` to choose the correct package and `.claude/skills/igniteui-wc-integrate-with-framework/SKILL.md` for setup.
|
|
39
|
+
- If the required Ignite UI package is not present in `package.json`, add or install the correct dependency first.
|