@create-lft-app/cli 1.0.4 → 1.0.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/README.md +122 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# @create-lft-app/cli
|
|
2
|
+
|
|
3
|
+
CLI para crear proyectos LFT con Next.js, GitHub, Supabase y Jira integrados.
|
|
4
|
+
|
|
5
|
+
## Instalacion
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @create-lft-app/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
O ejecutar directamente con npx:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @create-lft-app/cli mi-proyecto
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Uso
|
|
18
|
+
|
|
19
|
+
### Crear un proyecto nuevo
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
create-lft-app mi-proyecto
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Crear proyecto con confirmacion automatica
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
create-lft-app mi-proyecto -y
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Opciones disponibles
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
create-lft-app [nombre-proyecto] [opciones]
|
|
35
|
+
|
|
36
|
+
Opciones:
|
|
37
|
+
-V, --version Muestra la version
|
|
38
|
+
--skip-github No crear repositorio en GitHub
|
|
39
|
+
--skip-supabase No crear proyecto en Supabase
|
|
40
|
+
--skip-jira No crear proyecto en Jira
|
|
41
|
+
--skip-git No inicializar git ni hacer push
|
|
42
|
+
-y, --yes Aceptar todas las confirmaciones
|
|
43
|
+
-h, --help Muestra ayuda
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Ejemplos
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Crear proyecto completo
|
|
50
|
+
create-lft-app mi-app
|
|
51
|
+
|
|
52
|
+
# Crear solo con GitHub y Next.js (sin Supabase ni Jira)
|
|
53
|
+
create-lft-app mi-app --skip-supabase --skip-jira
|
|
54
|
+
|
|
55
|
+
# Crear proyecto local sin servicios externos
|
|
56
|
+
create-lft-app mi-app --skip-github --skip-supabase --skip-jira --skip-git
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Que crea el CLI
|
|
60
|
+
|
|
61
|
+
1. **GitHub**: Repositorio privado en la organizacion configurada
|
|
62
|
+
2. **Supabase**: Proyecto con base de datos PostgreSQL
|
|
63
|
+
3. **Jira**: Proyecto de software con template Scrum
|
|
64
|
+
4. **Next.js**: Aplicacion con:
|
|
65
|
+
- TypeScript
|
|
66
|
+
- Tailwind CSS
|
|
67
|
+
- App Router
|
|
68
|
+
- ESLint
|
|
69
|
+
- Turbopack
|
|
70
|
+
- Template LFT con componentes y paginas
|
|
71
|
+
|
|
72
|
+
## Recursos existentes
|
|
73
|
+
|
|
74
|
+
Si alguno de los recursos ya existe (repo, proyecto Supabase, proyecto Jira, o directorio), el CLI lo detecta y continua sin error, mostrando un checkmark con "(ya existe)".
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Desarrollo del paquete
|
|
79
|
+
|
|
80
|
+
Esta seccion es solo para desarrolladores que mantienen el paquete.
|
|
81
|
+
|
|
82
|
+
### Configuracion de credenciales
|
|
83
|
+
|
|
84
|
+
Para desarrollo local, crea un archivo `.env` en la raiz del proyecto:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# GitHub
|
|
88
|
+
LFT_GITHUB_TOKEN=ghp_xxxxxxxxxxxx
|
|
89
|
+
LFT_GITHUB_USERNAME=tu-usuario
|
|
90
|
+
LFT_GITHUB_ORG=tu-organizacion
|
|
91
|
+
|
|
92
|
+
# Supabase
|
|
93
|
+
LFT_SUPABASE_TOKEN=sbp_xxxxxxxxxxxx
|
|
94
|
+
LFT_SUPABASE_ORG_ID=xxxxxxxxxxxx
|
|
95
|
+
LFT_SUPABASE_REGION=us-east-1
|
|
96
|
+
|
|
97
|
+
# Jira
|
|
98
|
+
LFT_JIRA_TOKEN=ATATT3xxxxxxxxxxx
|
|
99
|
+
LFT_JIRA_EMAIL=tu-email@ejemplo.com
|
|
100
|
+
LFT_JIRA_DOMAIN=tu-dominio.atlassian.net
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Comandos de desarrollo
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Instalar dependencias
|
|
107
|
+
npm install
|
|
108
|
+
|
|
109
|
+
# Build
|
|
110
|
+
npm run build
|
|
111
|
+
|
|
112
|
+
# Ejecutar localmente
|
|
113
|
+
node dist/bin/cli.js mi-proyecto
|
|
114
|
+
|
|
115
|
+
# Publicar nueva version
|
|
116
|
+
npm version patch
|
|
117
|
+
npm publish
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Licencia
|
|
121
|
+
|
|
122
|
+
MIT
|