@getcoherent/cli 0.6.28 → 0.6.30
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/dist/index.js +21 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8451,6 +8451,27 @@ async function fixCommand(opts = {}) {
|
|
|
8451
8451
|
const layoutTypes = plan.groups.map((g) => `${g.id}:${g.layout}`).join(", ");
|
|
8452
8452
|
fixes.push(`Verified group layouts (${layoutTypes})`);
|
|
8453
8453
|
console.log(chalk15.green(` \u2714 Verified group layouts: ${layoutTypes}`));
|
|
8454
|
+
const hasSidebar = plan.groups.some((g) => g.layout === "sidebar" || g.layout === "both");
|
|
8455
|
+
const sidebarPath = resolve10(projectRoot, "components", "shared", "sidebar.tsx");
|
|
8456
|
+
if (hasSidebar && !existsSync16(sidebarPath) && !dryRun) {
|
|
8457
|
+
if (!dsm) {
|
|
8458
|
+
dsm = new DesignSystemManager9(project.configPath);
|
|
8459
|
+
await dsm.load();
|
|
8460
|
+
}
|
|
8461
|
+
const { PageGenerator, generateSharedComponent: generateSharedComponent6 } = await import("@getcoherent/core");
|
|
8462
|
+
const generator = new PageGenerator(dsm.getConfig());
|
|
8463
|
+
const sidebarCode = generator.generateSharedSidebarCode();
|
|
8464
|
+
await generateSharedComponent6(projectRoot, {
|
|
8465
|
+
name: "AppSidebar",
|
|
8466
|
+
type: "layout",
|
|
8467
|
+
code: sidebarCode,
|
|
8468
|
+
description: "Application sidebar using shadcn/ui Sidebar components",
|
|
8469
|
+
usedIn: ["app/(app)/layout.tsx"],
|
|
8470
|
+
overwrite: true
|
|
8471
|
+
});
|
|
8472
|
+
fixes.push("Generated AppSidebar shared component");
|
|
8473
|
+
console.log(chalk15.green(" \u2714 Generated AppSidebar shared component"));
|
|
8474
|
+
}
|
|
8454
8475
|
}
|
|
8455
8476
|
} catch {
|
|
8456
8477
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.6.
|
|
6
|
+
"version": "0.6.30",
|
|
7
7
|
"description": "CLI interface for Coherent Design Method",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ora": "^7.0.1",
|
|
44
44
|
"prompts": "^2.4.2",
|
|
45
45
|
"zod": "^3.22.4",
|
|
46
|
-
"@getcoherent/core": "0.6.
|
|
46
|
+
"@getcoherent/core": "0.6.30"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^20.11.0",
|