fwinit 1.3.4 → 1.3.6
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -505,7 +505,7 @@ async function writeRootFiles(info) {
|
|
|
505
505
|
"",
|
|
506
506
|
`- \`backend/\` \u2014 ${info.backend.description}`,
|
|
507
507
|
`- \`frontend/\` \u2014 ${info.frontend.description}`,
|
|
508
|
-
"- `.opencode/` \u2014 skills de opencode
|
|
508
|
+
"- `.opencode/` \u2014 skills de opencode: `/create-specs` para las specs + biblioteca de dise\xF1o (dark-luxury, minimal-light, neo-brutalist, glassmorphism)",
|
|
509
509
|
"- `specs/` \u2014 especificaciones del proyecto",
|
|
510
510
|
"",
|
|
511
511
|
"## Backend",
|
|
@@ -543,6 +543,7 @@ function getCliVersion() {
|
|
|
543
543
|
async function installOpenCodeFiles(repoRoot, projectPath) {
|
|
544
544
|
const skill = join2(repoRoot, "skills", "create-specs", "SKILL.md");
|
|
545
545
|
const command = join2(repoRoot, "skills", "create-specs", "command.md");
|
|
546
|
+
const designDir = join2(repoRoot, "skills", "design");
|
|
546
547
|
try {
|
|
547
548
|
await access(skill);
|
|
548
549
|
await access(command);
|
|
@@ -563,6 +564,13 @@ async function installOpenCodeFiles(repoRoot, projectPath) {
|
|
|
563
564
|
command,
|
|
564
565
|
join2(projectPath, ".opencode", "commands", "create-specs.md")
|
|
565
566
|
);
|
|
567
|
+
try {
|
|
568
|
+
await access(designDir);
|
|
569
|
+
await cp2(designDir, join2(projectPath, ".opencode", "skills", "design"), {
|
|
570
|
+
recursive: true
|
|
571
|
+
});
|
|
572
|
+
} catch {
|
|
573
|
+
}
|
|
566
574
|
}
|
|
567
575
|
async function readTemplatePostInit(dir) {
|
|
568
576
|
try {
|