grg-kit-cli 0.6.3 → 0.6.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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "grg-kit-cli",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
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
9
  "scripts": {
10
- "generate": "node scripts/generate-resources.js",
11
- "prepublishOnly": "npm run generate",
10
+ "catalog": "node scripts/generate-resources.js",
11
+ "prepublishOnly": "npm run catalog",
12
12
  "test": "echo \"Error: no test specified\" && exit 1"
13
13
  },
14
14
  "keywords": [
@@ -302,6 +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: pnpm catalog',
305
306
  version: '1.0.1',
306
307
  lastUpdated: new Date().toISOString().split('T')[0],
307
308
  cli: {
@@ -1,72 +0,0 @@
1
- /**
2
- * CLI Metadata - Single source of truth for CLI commands
3
- * Used by both CLI and MCP server
4
- */
5
-
6
- const CLI_METADATA = {
7
- name: 'grg',
8
- version: '0.6.2',
9
- description: 'GRG Kit CLI - Initialize your Angular project with GRG Kit components and add blocks',
10
-
11
- commands: {
12
- init: {
13
- name: 'init',
14
- description: 'Initialize GRG Kit in current Angular project: installs Tailwind CSS v4, Spartan-NG, theme, and examples',
15
- usage: 'grg init [options]',
16
- options: [
17
- {
18
- flag: '-t, --theme <name>',
19
- description: 'Theme to install',
20
- default: 'grg-theme',
21
- choices: ['grg-theme', 'claude', 'clean-slate', 'modern-minimal', 'amber-minimal', 'mocks']
22
- }
23
- ],
24
- examples: [
25
- { command: 'grg init', description: 'Initialize with default theme' },
26
- { command: 'grg init --theme claude', description: 'Initialize with Claude theme' }
27
- ]
28
- },
29
-
30
- addBlock: {
31
- name: 'add block',
32
- description: 'Add blocks to your project',
33
- usage: 'grg add block <blockName> [fileIds...]',
34
- options: [
35
- { flag: '--all', description: 'Add all blocks' },
36
- { flag: '-o, --output <path>', description: 'Custom output directory' }
37
- ],
38
- blocks: ['auth', 'shell', 'settings'],
39
- examples: [
40
- { command: 'grg add block auth', description: 'Add all auth files' },
41
- { command: 'grg add block auth login', description: 'Add only login file' },
42
- { command: 'grg add block auth login register', description: 'Add login and register files' },
43
- { command: 'grg add block shell sidebar', description: 'Add sidebar shell layout' },
44
- { command: 'grg add block --all', description: 'Add all blocks' }
45
- ]
46
- },
47
-
48
- list: {
49
- name: 'list',
50
- description: 'List available blocks and components',
51
- usage: 'grg list [category]',
52
- categories: ['blocks', 'themes', 'components'],
53
- examples: [
54
- { command: 'grg list', description: 'List all resources' },
55
- { command: 'grg list blocks', description: 'List available blocks' }
56
- ]
57
- }
58
- },
59
-
60
- // Helper to generate install command for a block
61
- getBlockInstallCommand: (blockName, fileIds = []) => {
62
- const files = fileIds.length > 0 ? ` ${fileIds.join(' ')}` : '';
63
- return `grg add block ${blockName}${files}`;
64
- },
65
-
66
- // Helper to generate init command with theme
67
- getInitCommand: (themeName) => {
68
- return themeName ? `grg init --theme ${themeName}` : 'grg init';
69
- }
70
- };
71
-
72
- module.exports = { CLI_METADATA };