fwinit 1.0.0 → 1.0.1
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 +55 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,8 +5,13 @@ CLI para crear proyectos desde templates. Instalás una vez y scaffoldás proyec
|
|
|
5
5
|
## Instalación
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# pnpm (recomendado)
|
|
9
|
+
pnpm add -g fwinit
|
|
10
|
+
|
|
11
|
+
# npm
|
|
8
12
|
npm install -g fwinit
|
|
9
|
-
|
|
13
|
+
|
|
14
|
+
# bun
|
|
10
15
|
bun add -g fwinit
|
|
11
16
|
```
|
|
12
17
|
|
|
@@ -61,11 +66,26 @@ fwinit --help
|
|
|
61
66
|
## Desarrollo
|
|
62
67
|
|
|
63
68
|
```bash
|
|
69
|
+
# pnpm (recomendado)
|
|
70
|
+
pnpm install
|
|
71
|
+
pnpm run build # build a dist/
|
|
72
|
+
pnpm run dev # watch mode
|
|
73
|
+
pnpm run start # ejecutar desde dist/
|
|
74
|
+
pnpm run typecheck # type check
|
|
75
|
+
|
|
76
|
+
# npm
|
|
77
|
+
npm install
|
|
78
|
+
npm run build
|
|
79
|
+
npm run dev
|
|
80
|
+
npm run start
|
|
81
|
+
npm run typecheck
|
|
82
|
+
|
|
83
|
+
# bun
|
|
64
84
|
bun install
|
|
65
|
-
bun run build
|
|
66
|
-
bun run dev
|
|
67
|
-
bun run start
|
|
68
|
-
bun run typecheck
|
|
85
|
+
bun run build
|
|
86
|
+
bun run dev
|
|
87
|
+
bun run start
|
|
88
|
+
bun run typecheck
|
|
69
89
|
```
|
|
70
90
|
|
|
71
91
|
### Probar localmente
|
|
@@ -78,10 +98,39 @@ node dist/index.js fastify mi-api
|
|
|
78
98
|
### Link global para desarrollo
|
|
79
99
|
|
|
80
100
|
```bash
|
|
101
|
+
# pnpm (recomendado)
|
|
102
|
+
pnpm link --global
|
|
103
|
+
|
|
104
|
+
# npm
|
|
105
|
+
npm link
|
|
106
|
+
|
|
107
|
+
# bun
|
|
81
108
|
bun link
|
|
82
|
-
# ahora `fwinit` está disponible en todo el sistema
|
|
83
109
|
```
|
|
84
110
|
|
|
111
|
+
Ahora `fwinit` está disponible en todo el sistema.
|
|
112
|
+
|
|
113
|
+
## Solución a problemas comunes
|
|
114
|
+
|
|
115
|
+
### pnpm: "Unable to find the global bin directory"
|
|
116
|
+
|
|
117
|
+
pnpm no tiene configurado el directorio global. Corré esto una vez:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
pnpm setup
|
|
121
|
+
source ~/.bashrc # o reiniciá la terminal
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### bun: "add the global bin folder to $PATH"
|
|
125
|
+
|
|
126
|
+
bun se instaló pero falta agregar su directorio al PATH. Agregalo a tu `.bashrc` o `.zshrc`:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
export PATH="$HOME/.bun/bin:$PATH"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Después reiniciá la terminal o corré `source ~/.bashrc`.
|
|
133
|
+
|
|
85
134
|
## Licencia
|
|
86
135
|
|
|
87
136
|
MIT
|