grg-kit-cli 0.6.6 → 0.6.7
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/README.md +2 -2
- package/commands/init.js +3 -3
- package/commands/llm-setup.js +6 -7
- package/package.json +7 -6
- package/scripts/README.md +5 -5
- package/scripts/generate-resources.js +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ CLI tool for initializing Angular projects with GRG Kit and adding blocks.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
npm install -g grg-kit-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
@@ -140,7 +140,7 @@ For AI assistants to automatically discover and use GRG Kit resources:
|
|
|
140
140
|
### 1. Install the MCP Server
|
|
141
141
|
|
|
142
142
|
```bash
|
|
143
|
-
|
|
143
|
+
npm install -g grg-kit-mcp-server
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
### 2. Configure Your AI Assistant
|
package/commands/init.js
CHANGED
|
@@ -48,7 +48,7 @@ async function init(options) {
|
|
|
48
48
|
// Step 1: Install Tailwind CSS v4
|
|
49
49
|
spinner.start('Installing Tailwind CSS v4...');
|
|
50
50
|
try {
|
|
51
|
-
await execAsync('
|
|
51
|
+
await execAsync('npm install tailwindcss @tailwindcss/postcss postcss', { stdio: 'pipe' });
|
|
52
52
|
spinner.succeed(chalk.green('✓ Tailwind CSS v4 installed'));
|
|
53
53
|
} catch (error) {
|
|
54
54
|
spinner.warn(chalk.yellow('Tailwind CSS installation skipped (may already be installed)'));
|
|
@@ -71,7 +71,7 @@ async function init(options) {
|
|
|
71
71
|
// Step 4: Install Spartan-NG CLI
|
|
72
72
|
spinner.start('Installing Spartan-NG CLI...');
|
|
73
73
|
try {
|
|
74
|
-
await execAsync('
|
|
74
|
+
await execAsync('npm install -D @spartan-ng/cli', { stdio: 'pipe' });
|
|
75
75
|
spinner.succeed(chalk.green('✓ Spartan-NG CLI installed'));
|
|
76
76
|
} catch (error) {
|
|
77
77
|
spinner.warn(chalk.yellow('Spartan-NG CLI installation skipped'));
|
|
@@ -123,7 +123,7 @@ async function init(options) {
|
|
|
123
123
|
try {
|
|
124
124
|
const { spawn } = require('child_process');
|
|
125
125
|
await new Promise((resolve, reject) => {
|
|
126
|
-
const child = spawn('
|
|
126
|
+
const child = spawn('npx', ['ng', 'g', '@spartan-ng/cli:ui'], {
|
|
127
127
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
128
128
|
shell: true
|
|
129
129
|
});
|
package/commands/llm-setup.js
CHANGED
|
@@ -508,10 +508,10 @@ export class FormComponent {
|
|
|
508
508
|
|
|
509
509
|
## Package Manager
|
|
510
510
|
|
|
511
|
-
|
|
512
|
-
- \`
|
|
513
|
-
- \`
|
|
514
|
-
- \`
|
|
511
|
+
Use npm for package management operations:
|
|
512
|
+
- \`npm install\` for installing dependencies
|
|
513
|
+
- \`npm install <package>\` for adding packages
|
|
514
|
+
- \`npm uninstall\` for removing packages
|
|
515
515
|
|
|
516
516
|
This design system provides a comprehensive foundation for building consistent, accessible, and maintainable Angular applications using modern UI patterns and best practices.
|
|
517
517
|
`;
|
|
@@ -548,8 +548,7 @@ Add the grg-kit MCP server to your AI assistant configuration:
|
|
|
548
548
|
{
|
|
549
549
|
"mcpServers": {
|
|
550
550
|
"grg-kit": {
|
|
551
|
-
"command": "
|
|
552
|
-
"args": ["-y", "@grg-kit/mcp-server"]
|
|
551
|
+
"command": "grg-mcp-server"
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
554
|
}
|
|
@@ -987,7 +986,7 @@ ${blocksList}
|
|
|
987
986
|
|
|
988
987
|
## Package Manager
|
|
989
988
|
|
|
990
|
-
|
|
989
|
+
Use npm for package management.
|
|
991
990
|
|
|
992
991
|
## Styling
|
|
993
992
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grg-kit-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "CLI tool for pulling GRG Kit resources into your Angular project",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"grg": "./bin/grg.js"
|
|
8
8
|
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"catalog": "node scripts/generate-resources.js",
|
|
11
|
+
"prepublishOnly": "npm run catalog",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
9
14
|
"keywords": [
|
|
10
15
|
"angular",
|
|
11
16
|
"ui",
|
|
@@ -30,9 +35,5 @@
|
|
|
30
35
|
},
|
|
31
36
|
"engines": {
|
|
32
37
|
"node": ">=16.0.0"
|
|
33
|
-
},
|
|
34
|
-
"scripts": {
|
|
35
|
-
"catalog": "node scripts/generate-resources.js",
|
|
36
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
37
38
|
}
|
|
38
|
-
}
|
|
39
|
+
}
|
package/scripts/README.md
CHANGED
|
@@ -15,7 +15,7 @@ GRG Kit uses a **two-stage generation pipeline** to ensure CLI and MCP server al
|
|
|
15
15
|
│
|
|
16
16
|
▼
|
|
17
17
|
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
18
|
-
│ STAGE 1:
|
|
18
|
+
│ STAGE 1: npm generate:sources (in app/) │
|
|
19
19
|
│ │
|
|
20
20
|
│ • Transforms source components → template files │
|
|
21
21
|
│ • Copies meta.json files → templates/ directory │
|
|
@@ -79,7 +79,7 @@ app/src/app/blocks/my-block/meta.json
|
|
|
79
79
|
# 3. Update generate-sources.js CONFIG.blocks.sources array
|
|
80
80
|
|
|
81
81
|
# 4. Run generation
|
|
82
|
-
cd app &&
|
|
82
|
+
cd app && npm generate:sources
|
|
83
83
|
cd ../cli && node scripts/generate-resources.js
|
|
84
84
|
|
|
85
85
|
# 5. Commit and push - CLI/MCP pick up changes automatically
|
|
@@ -124,7 +124,7 @@ Generates template files and copies metadata.
|
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
126
|
cd app
|
|
127
|
-
|
|
127
|
+
npm generate:sources
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
**What it does:**
|
|
@@ -226,8 +226,8 @@ grg-kit/
|
|
|
226
226
|
|
|
227
227
|
| Task | Command |
|
|
228
228
|
|------|---------|
|
|
229
|
-
| Generate templates + copy meta | `cd app &&
|
|
229
|
+
| Generate templates + copy meta | `cd app && npm generate:sources` |
|
|
230
230
|
| Generate resources + catalog | `cd cli && node scripts/generate-resources.js` |
|
|
231
231
|
| Full regeneration | Run both above |
|
|
232
232
|
| Test CLI | `cd cli && node bin/grg.js list` |
|
|
233
|
-
| Build MCP | `cd mcp-server &&
|
|
233
|
+
| Build MCP | `cd mcp-server && npm build` |
|
|
@@ -302,7 +302,7 @@ module.exports = { RESOURCES, REPO };
|
|
|
302
302
|
const cliPackage = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json'), 'utf-8'));
|
|
303
303
|
|
|
304
304
|
const catalog = {
|
|
305
|
-
_generated: 'AUTO-GENERATED FILE - DO NOT EDIT MANUALLY. Run:
|
|
305
|
+
_generated: 'AUTO-GENERATED FILE - DO NOT EDIT MANUALLY. Run: npm catalog',
|
|
306
306
|
version: '1.0.1',
|
|
307
307
|
lastUpdated: new Date().toISOString().split('T')[0],
|
|
308
308
|
cli: {
|