grg-kit-cli 0.6.12 → 0.6.13

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.
@@ -226,6 +226,26 @@ const RESOURCES = {
226
226
  "@spartan-ng/helm/button",
227
227
  "@spartan-ng/helm/card",
228
228
  "@spartan-ng/helm/form-field"
229
+ ],
230
+ "files": [
231
+ {
232
+ "id": "forgot-password",
233
+ "file": "forgot-password.component.ts",
234
+ "title": "Forgot Password",
235
+ "description": "Forgot Password"
236
+ },
237
+ {
238
+ "id": "login",
239
+ "file": "login.component.ts",
240
+ "title": "Login",
241
+ "description": "Login"
242
+ },
243
+ {
244
+ "id": "register",
245
+ "file": "register.component.ts",
246
+ "title": "Register",
247
+ "description": "Register"
248
+ }
229
249
  ]
230
250
  },
231
251
  {
@@ -246,6 +266,32 @@ const RESOURCES = {
246
266
  "@spartan-ng/helm/card",
247
267
  "@spartan-ng/helm/form-field",
248
268
  "@spartan-ng/helm/switch"
269
+ ],
270
+ "files": [
271
+ {
272
+ "id": "danger-zone",
273
+ "file": "danger-zone.component.ts",
274
+ "title": "Danger Zone",
275
+ "description": "Danger Zone"
276
+ },
277
+ {
278
+ "id": "notification",
279
+ "file": "notification-settings.component.ts",
280
+ "title": "Notification Settings",
281
+ "description": "Notification Settings"
282
+ },
283
+ {
284
+ "id": "profile",
285
+ "file": "profile-settings.component.ts",
286
+ "title": "Profile Settings",
287
+ "description": "Profile Settings"
288
+ },
289
+ {
290
+ "id": "security",
291
+ "file": "security-settings.component.ts",
292
+ "title": "Security Settings",
293
+ "description": "Security Settings"
294
+ }
249
295
  ]
250
296
  },
251
297
  {
@@ -268,6 +314,44 @@ const RESOURCES = {
268
314
  "@spartan-ng/helm/button",
269
315
  "@spartan-ng/helm/icon",
270
316
  "@spartan-ng/helm/dropdown-menu"
317
+ ],
318
+ "files": [
319
+ {
320
+ "id": "collapsible-footer",
321
+ "file": "collapsible-shell-footer.component.ts",
322
+ "title": "Collapsible Shell Footer",
323
+ "description": "Collapsible Shell Footer"
324
+ },
325
+ {
326
+ "id": "collapsible",
327
+ "file": "collapsible-shell.component.ts",
328
+ "title": "Collapsible Shell",
329
+ "description": "Collapsible Shell"
330
+ },
331
+ {
332
+ "id": "sidebar-footer",
333
+ "file": "sidebar-shell-footer.component.ts",
334
+ "title": "Sidebar Shell Footer",
335
+ "description": "Sidebar Shell Footer"
336
+ },
337
+ {
338
+ "id": "sidebar",
339
+ "file": "sidebar-shell.component.ts",
340
+ "title": "Sidebar Shell",
341
+ "description": "Sidebar Shell"
342
+ },
343
+ {
344
+ "id": "topnav-footer",
345
+ "file": "topnav-shell-footer.component.ts",
346
+ "title": "Topnav Shell Footer",
347
+ "description": "Topnav Shell Footer"
348
+ },
349
+ {
350
+ "id": "topnav",
351
+ "file": "topnav-shell.component.ts",
352
+ "title": "Topnav Shell",
353
+ "description": "Topnav Shell"
354
+ }
271
355
  ]
272
356
  }
273
357
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grg-kit-cli",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "description": "CLI tool for pulling GRG Kit resources into your Angular project",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -156,7 +156,7 @@ function scanBlockFiles(blockDir, blockName) {
156
156
  .sort((a, b) => a.file.localeCompare(b.file));
157
157
  }
158
158
 
159
- function generateBlocks(includeFiles = false) {
159
+ function generateBlocks() {
160
160
  const blocksDir = path.join(TEMPLATES_DIR, 'ui/blocks');
161
161
  const dirs = scanDirectory(blocksDir);
162
162
 
@@ -166,22 +166,16 @@ function generateBlocks(includeFiles = false) {
166
166
  const blockDir = path.join(blocksDir, dir.name);
167
167
  const metadata = readMeta(blockDir) || defaultBlockMeta(dir.name);
168
168
 
169
- const block = {
169
+ return {
170
170
  name: dir.name,
171
171
  title: dir.name.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' '),
172
172
  description: metadata.description,
173
173
  path: `templates/ui/blocks/${dir.name}`,
174
174
  defaultOutput: `src/app/blocks/${dir.name}`,
175
175
  tags: metadata.tags || [],
176
- dependencies: metadata.dependencies || []
176
+ dependencies: metadata.dependencies || [],
177
+ files: scanBlockFiles(blockDir, dir.name) // Always include files
177
178
  };
178
-
179
- // Include file-level details for catalog
180
- if (includeFiles) {
181
- block.files = scanBlockFiles(blockDir, dir.name);
182
- }
183
-
184
- return block;
185
179
  });
186
180
  }
187
181