lean-spec 0.2.5-dev.20251124054449 → 0.2.5-dev.20251124062211
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.
|
@@ -2271,6 +2271,18 @@ async function scaffoldExample(exampleName, customName) {
|
|
|
2271
2271
|
const examplePath = path15.join(EXAMPLES_DIR, exampleName);
|
|
2272
2272
|
await copyDirectoryRecursive(examplePath, targetPath);
|
|
2273
2273
|
console.log(chalk19.green("\u2713 Copied example project"));
|
|
2274
|
+
const originalCwd = process.cwd();
|
|
2275
|
+
try {
|
|
2276
|
+
process.chdir(targetPath);
|
|
2277
|
+
console.log(chalk19.gray("Initializing LeanSpec..."));
|
|
2278
|
+
await initProject(true);
|
|
2279
|
+
console.log(chalk19.green("\u2713 Initialized LeanSpec"));
|
|
2280
|
+
} catch (error) {
|
|
2281
|
+
console.error(chalk19.red("Error initializing LeanSpec:"), error);
|
|
2282
|
+
process.exit(1);
|
|
2283
|
+
} finally {
|
|
2284
|
+
process.chdir(originalCwd);
|
|
2285
|
+
}
|
|
2274
2286
|
const packageManager = await detectPackageManager();
|
|
2275
2287
|
console.log(chalk19.gray(`Installing dependencies with ${packageManager}...`));
|
|
2276
2288
|
try {
|
|
@@ -2287,6 +2299,10 @@ async function scaffoldExample(exampleName, customName) {
|
|
|
2287
2299
|
console.log("");
|
|
2288
2300
|
console.log(chalk19.green("\u2713 Example project ready!"));
|
|
2289
2301
|
console.log("");
|
|
2302
|
+
console.log(chalk19.gray("Created:"));
|
|
2303
|
+
console.log(chalk19.gray(` - Application code (${example.tech.join(", ")})`));
|
|
2304
|
+
console.log(chalk19.gray(" - LeanSpec files (AGENTS.md, .lean-spec/, specs/)"));
|
|
2305
|
+
console.log("");
|
|
2290
2306
|
console.log("Next steps:");
|
|
2291
2307
|
console.log(chalk19.cyan(` 1. cd ${targetDirName}`));
|
|
2292
2308
|
console.log(chalk19.cyan(" 2. Open this project in your editor"));
|
|
@@ -8792,5 +8808,5 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
8792
8808
|
}
|
|
8793
8809
|
|
|
8794
8810
|
export { analyzeCommand, archiveCommand, backfillCommand, boardCommand, checkCommand, compactCommand, createCommand, createMcpServer, depsCommand, examplesCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, validateCommand, viewCommand };
|
|
8795
|
-
//# sourceMappingURL=chunk-
|
|
8796
|
-
//# sourceMappingURL=chunk-
|
|
8811
|
+
//# sourceMappingURL=chunk-YE3BCNO6.js.map
|
|
8812
|
+
//# sourceMappingURL=chunk-YE3BCNO6.js.map
|