fwinit 1.3.2 → 1.3.3

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 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,7 @@ 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 |
109
112
  | `react-native` | frontend | App móvil con React Native, Expo y TypeScript | node |
110
113
 
111
114
  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 +123,10 @@ El runtime `bun` de un template se porta automáticamente a `node` (npm/pnpm) si
120
123
  4. Si corresponde, porta el template de runtime bun a node (npm/pnpm)
121
124
  5. Instala `.opencode/` con la skill `create-specs` y el comando `/create-specs`
122
125
  6. Limpia los lock files (cada proyecto instala los suyos)
123
- 7. Te muestra los próximos pasos (install y dev de cada carpeta)
126
+ 7. Si lo elegís (o pasás `--git`), inicializa un repositorio git en la raíz
127
+ 8. Te muestra los próximos pasos (install y dev de cada carpeta)
124
128
 
125
- En modo fullstack, además crea `.gitignore` y `README.md` en la raíz del monorepo.
129
+ 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
130
 
127
131
  ## Desarrollo
128
132
 
package/dist/index.js CHANGED
@@ -42,6 +42,14 @@ 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
+ },
45
53
  {
46
54
  name: "React Native",
47
55
  alias: ["react-native", "rn", "expo"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fwinit",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "CLI para crear proyectos desde templates",
5
5
  "type": "module",
6
6
  "bin": {