@nikkory/vibe-cli 2.4.0 → 2.4.1
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 +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1065,10 +1065,10 @@ var import_commander4 = require("commander");
|
|
|
1065
1065
|
var import_chalk3 = __toESM(require("chalk"));
|
|
1066
1066
|
var import_ora3 = __toESM(require("ora"));
|
|
1067
1067
|
|
|
1068
|
-
// src/generators/section-
|
|
1068
|
+
// src/generators/page-section-generator.ts
|
|
1069
1069
|
var import_promises2 = require("fs/promises");
|
|
1070
1070
|
var import_path2 = require("path");
|
|
1071
|
-
var
|
|
1071
|
+
var PageSectionGenerator = class {
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Generate section code
|
|
1074
1074
|
*
|
|
@@ -1228,8 +1228,8 @@ var sectionGenerateCommand = new import_commander4.Command("add:section").alias(
|
|
|
1228
1228
|
).action(async (sectionId, options) => {
|
|
1229
1229
|
const spinner = (0, import_ora3.default)("Generating section...").start();
|
|
1230
1230
|
try {
|
|
1231
|
-
const
|
|
1232
|
-
const result = await
|
|
1231
|
+
const generator = new PageSectionGenerator();
|
|
1232
|
+
const result = await generator.generate({
|
|
1233
1233
|
sectionId,
|
|
1234
1234
|
designSystem: options.designSystem,
|
|
1235
1235
|
tier: options.tier
|
|
@@ -1242,7 +1242,7 @@ var sectionGenerateCommand = new import_commander4.Command("add:section").alias(
|
|
|
1242
1242
|
process.exit(1);
|
|
1243
1243
|
}
|
|
1244
1244
|
if (options.output) {
|
|
1245
|
-
await
|
|
1245
|
+
await generator.writeToFile(options.output, result.composedCode);
|
|
1246
1246
|
spinner.succeed(import_chalk3.default.green(`Generated ${result.metadata.sectionId} \u2192 ${options.output}`));
|
|
1247
1247
|
} else {
|
|
1248
1248
|
spinner.succeed(import_chalk3.default.green(`Generated ${result.metadata.sectionId}`));
|
|
@@ -1666,7 +1666,7 @@ ${y.bold(" \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D\u2588\u
|
|
|
1666
1666
|
${y.bold(" \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 ")}
|
|
1667
1667
|
${y.bold(" \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D ")}
|
|
1668
1668
|
|
|
1669
|
-
${y(" happy together")} ${import_chalk5.default.white("\u2022 v2.4.
|
|
1669
|
+
${y(" happy together")} ${import_chalk5.default.white("\u2022 v2.4.1")}
|
|
1670
1670
|
|
|
1671
1671
|
${import_chalk5.default.gray(" Production-ready code in seconds")}
|
|
1672
1672
|
${import_chalk5.default.gray(" https://nikkory.com")}
|