create-react-zr-architecture 1.0.2 → 1.0.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 +11 -3
- package/bin/cli.js +6 -3
- package/package.json +1 -1
- package/template/_package.json +46 -0
package/README.md
CHANGED
|
@@ -18,7 +18,15 @@ Generador CLI para crear proyectos React con **Clean Architecture**, TypeScript,
|
|
|
18
18
|
## 📦 Instalación
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
# Con npm
|
|
22
|
+
npm create react-zr-architecture mi-proyecto
|
|
23
|
+
|
|
24
|
+
# Con pnpm
|
|
25
|
+
pnpm create react-zr-architecture mi-proyecto
|
|
26
|
+
|
|
27
|
+
# Con npx
|
|
28
|
+
npx create-react-zr-architecture mi-proyecto
|
|
29
|
+
|
|
22
30
|
cd mi-proyecto
|
|
23
31
|
npm run dev
|
|
24
32
|
```
|
|
@@ -267,8 +275,8 @@ MIT © Diego Aguilera
|
|
|
267
275
|
|
|
268
276
|
## 🔗 Enlaces
|
|
269
277
|
|
|
270
|
-
- [Repositorio](https://github.com/diegoAguilera02/create-react-
|
|
271
|
-
- [Issues](https://github.com/diegoAguilera02/create-react-
|
|
278
|
+
- [Repositorio](https://github.com/diegoAguilera02/create-react-zr-architecture)
|
|
279
|
+
- [Issues](https://github.com/diegoAguilera02/create-react-zr-architecture/issues)
|
|
272
280
|
- [shadcn/ui](https://ui.shadcn.com/)
|
|
273
281
|
- [Vite](https://vitejs.dev/)
|
|
274
282
|
- [TanStack Query](https://tanstack.com/query/latest)
|
package/bin/cli.js
CHANGED
|
@@ -95,12 +95,15 @@ async function main() {
|
|
|
95
95
|
const templatePath = path.join(__dirname, '../template');
|
|
96
96
|
|
|
97
97
|
try {
|
|
98
|
-
|
|
98
|
+
const viteSrcPath = path.join(projectPath, 'src');
|
|
99
|
+
if (fs.existsSync(viteSrcPath)) {
|
|
100
|
+
fs.removeSync(viteSrcPath);
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
fs.copySync(templatePath, projectPath, {
|
|
100
104
|
overwrite: true,
|
|
101
105
|
filter: (src) => {
|
|
102
|
-
|
|
103
|
-
return !src.includes('node_modules');
|
|
106
|
+
return !src.includes('node_modules') && !src.includes('.sh');
|
|
104
107
|
}
|
|
105
108
|
});
|
|
106
109
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "tsc && vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"react": "^18.3.1",
|
|
14
|
+
"react-dom": "^18.3.1",
|
|
15
|
+
"react-router-dom": "^6.26.2",
|
|
16
|
+
"zustand": "^4.5.5",
|
|
17
|
+
"@tanstack/react-query": "^5.56.2",
|
|
18
|
+
"axios": "^1.7.7",
|
|
19
|
+
"zod": "^3.23.8",
|
|
20
|
+
"react-hook-form": "^7.53.0",
|
|
21
|
+
"@hookform/resolvers": "^3.9.0",
|
|
22
|
+
"clsx": "^2.1.1",
|
|
23
|
+
"tailwind-merge": "^2.5.2",
|
|
24
|
+
"lucide-react": "^0.446.0",
|
|
25
|
+
"date-fns": "^4.1.0",
|
|
26
|
+
"socket.io-client": "^4.8.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/react": "^18.3.10",
|
|
30
|
+
"@types/react-dom": "^18.3.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.7.0",
|
|
33
|
+
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
34
|
+
"autoprefixer": "^10.4.20",
|
|
35
|
+
"eslint": "^9.11.1",
|
|
36
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
37
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
38
|
+
"postcss": "^8.4.47",
|
|
39
|
+
"tailwindcss": "^3.4.13",
|
|
40
|
+
"tailwindcss-animate": "^1.0.7",
|
|
41
|
+
"typescript": "^5.6.2",
|
|
42
|
+
"vite": "^5.4.8",
|
|
43
|
+
"@types/node": "^22.7.4"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|