fwinit 1.3.2 → 1.3.4
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/README.md +7 -2
- package/dist/index.js +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -97,6 +97,8 @@ Igual para frontend: `fwinit react-native mi-app` pregunta por `frontend/`.
|
|
|
97
97
|
| `--no-backend` | Dejar el código en la raíz del proyecto (saltea la pregunta) |
|
|
98
98
|
| `-b, --backend-template <tpl>` | Backend a usar en fullstack (saltea la pregunta) |
|
|
99
99
|
| `-f, --frontend-template <tpl>` | Frontend a usar en fullstack (saltea la pregunta) |
|
|
100
|
+
| `--git` | Inicializar un repositorio git (saltea la pregunta) |
|
|
101
|
+
| `--no-git` | No inicializar git (saltea la pregunta) |
|
|
100
102
|
|
|
101
103
|
## Templates disponibles
|
|
102
104
|
|
|
@@ -106,6 +108,8 @@ Igual para frontend: `fwinit react-native mi-app` pregunta por `frontend/`.
|
|
|
106
108
|
| `express` | backend | API REST con Express, Prisma, TypeScript y Bun | bun |
|
|
107
109
|
| `fastify` | backend | API REST con Fastify, Prisma, TypeScript y Bun | bun |
|
|
108
110
|
| `nodejs` | backend | API con Node.js puro, Prisma, TypeScript y tsx | node |
|
|
111
|
+
| `astro` | frontend | Landing estática con Astro 7 y TypeScript | node |
|
|
112
|
+
| `tauri` | frontend | Dashboard de escritorio con React, Vite y Tauri 2 | node |
|
|
109
113
|
| `react-native` | frontend | App móvil con React Native, Expo y TypeScript | node |
|
|
110
114
|
|
|
111
115
|
La capa es metadata de cada template (`layer` en `templates/<TEMPLATE>/template.json`): para sumar un frontend nuevo (Astro, Next.js...), alcanza con agregar la carpeta del template y su `layer`. Los templates se clasifican por capa en la metadata, no por estructura de carpetas.
|
|
@@ -120,9 +124,10 @@ El runtime `bun` de un template se porta automáticamente a `node` (npm/pnpm) si
|
|
|
120
124
|
4. Si corresponde, porta el template de runtime bun a node (npm/pnpm)
|
|
121
125
|
5. Instala `.opencode/` con la skill `create-specs` y el comando `/create-specs`
|
|
122
126
|
6. Limpia los lock files (cada proyecto instala los suyos)
|
|
123
|
-
7.
|
|
127
|
+
7. Si lo elegís (o pasás `--git`), inicializa un repositorio git en la raíz
|
|
128
|
+
8. Te muestra los próximos pasos (install y dev de cada carpeta)
|
|
124
129
|
|
|
125
|
-
En modo fullstack
|
|
130
|
+
En modo fullstack (y single con layout de capa) crea además `.gitignore` y `README.md` en la raíz: el `.gitignore` protege el estado de AI de desarrollo (`.atl/`, `odd` y `.opencode/`), que viven fuera de la carpeta del template.
|
|
126
131
|
|
|
127
132
|
## Desarrollo
|
|
128
133
|
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,22 @@ var TEMPLATES = [
|
|
|
42
42
|
runtime: "node",
|
|
43
43
|
layer: "backend"
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
name: "Astro",
|
|
47
|
+
alias: ["astro"],
|
|
48
|
+
description: "Landing est\xE1tica con Astro 7 y TypeScript",
|
|
49
|
+
folder: "ASTRO",
|
|
50
|
+
runtime: "node",
|
|
51
|
+
layer: "frontend"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "Tauri",
|
|
55
|
+
alias: ["tauri"],
|
|
56
|
+
description: "Dashboard de escritorio con React, Vite y Tauri 2",
|
|
57
|
+
folder: "TAURI",
|
|
58
|
+
runtime: "node",
|
|
59
|
+
layer: "frontend"
|
|
60
|
+
},
|
|
45
61
|
{
|
|
46
62
|
name: "React Native",
|
|
47
63
|
alias: ["react-native", "rn", "expo"],
|