@aditokmo/react-setup-cli 0.1.0

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.
Files changed (75) hide show
  1. package/README.md +134 -0
  2. package/dist/index.js +81 -0
  3. package/dist/installers.js +23 -0
  4. package/dist/mapper.js +17 -0
  5. package/dist/packages.js +60 -0
  6. package/dist/questions.js +82 -0
  7. package/dist/types.js +1 -0
  8. package/dist/utils.js +74 -0
  9. package/package.json +65 -0
  10. package/templates/base/README.md +73 -0
  11. package/templates/base/eslint.config.js +23 -0
  12. package/templates/base/index.html +14 -0
  13. package/templates/base/package.json +30 -0
  14. package/templates/base/pnpm-lock.yaml +2105 -0
  15. package/templates/base/public/vite.svg +1 -0
  16. package/templates/base/src/App.tsx +9 -0
  17. package/templates/base/src/api/api.ts +29 -0
  18. package/templates/base/src/api/http.ts +27 -0
  19. package/templates/base/src/api/index.ts +2 -0
  20. package/templates/base/src/assets/react.svg +1 -0
  21. package/templates/base/src/layout/AuthLayout.tsx +0 -0
  22. package/templates/base/src/layout/MainLayout.tsx +0 -0
  23. package/templates/base/src/layout/index.ts +2 -0
  24. package/templates/base/src/main.tsx +9 -0
  25. package/templates/base/src/modules/auth/components/AuthForm.tsx +5 -0
  26. package/templates/base/src/modules/auth/hooks/useAuth.ts +43 -0
  27. package/templates/base/src/modules/auth/pages/ForgotPassword.tsx +5 -0
  28. package/templates/base/src/modules/auth/pages/Login.tsx +5 -0
  29. package/templates/base/src/modules/auth/pages/Register.tsx +5 -0
  30. package/templates/base/src/modules/auth/pages/index.ts +3 -0
  31. package/templates/base/src/modules/auth/services/auth.service.ts +17 -0
  32. package/templates/base/src/modules/auth/services/endpoint.ts +10 -0
  33. package/templates/base/src/modules/auth/services/index.ts +3 -0
  34. package/templates/base/src/modules/auth/services/oauth.service.ts +1 -0
  35. package/templates/base/src/modules/auth/services/password.service.ts +1 -0
  36. package/templates/base/src/modules/auth/types/auth.types.ts +3 -0
  37. package/templates/base/src/modules/auth/types/index.ts +3 -0
  38. package/templates/base/src/modules/auth/types/oauth.types.ts +1 -0
  39. package/templates/base/src/modules/auth/types/password.types.ts +1 -0
  40. package/templates/base/src/modules/common/pages/NotFound.tsx +9 -0
  41. package/templates/base/src/modules/common/pages/index.ts +1 -0
  42. package/templates/base/src/utils/api-error-handler.ts +25 -0
  43. package/templates/base/tsconfig.app.json +32 -0
  44. package/templates/base/tsconfig.json +13 -0
  45. package/templates/base/tsconfig.node.json +26 -0
  46. package/templates/base/vite-env.d.ts +1 -0
  47. package/templates/base/vite.config.ts +18 -0
  48. package/templates/hooks/index.ts +0 -0
  49. package/templates/hooks/useDebounce.ts +1 -0
  50. package/templates/hooks/useTheme.ts +1 -0
  51. package/templates/hooks/useThrottle.ts +1 -0
  52. package/templates/hooks/useWebStorage.ts +1 -0
  53. package/templates/router/react-router/src/components/ProtectedRoute.tsx +20 -0
  54. package/templates/router/react-router/src/components/PublicRoute.tsx +20 -0
  55. package/templates/router/react-router/src/modules/auth/routes/index.tsx +21 -0
  56. package/templates/router/react-router/src/routes/AppRoutes.tsx +18 -0
  57. package/templates/router/react-router/src/routes/index.ts +3 -0
  58. package/templates/router/tanstack-router/src/providers/TanstackRouterProvider.tsx +14 -0
  59. package/templates/router/tanstack-router/src/routes/__root.tsx +13 -0
  60. package/templates/router/tanstack-router/src/routes/_protected/index.tsx +10 -0
  61. package/templates/router/tanstack-router/src/routes/_protected.tsx +18 -0
  62. package/templates/router/tanstack-router/src/routes/_public/forgot-password.tsx +6 -0
  63. package/templates/router/tanstack-router/src/routes/_public/login.tsx +6 -0
  64. package/templates/router/tanstack-router/src/routes/_public/register.tsx +6 -0
  65. package/templates/router/tanstack-router/src/routes/_public.tsx +13 -0
  66. package/templates/state/react-query/src/ReactQueryProvider.tsx +15 -0
  67. package/templates/state/react-query/src/index.ts +1 -0
  68. package/templates/state/zustand/src/auth/useAuthStore.ts +29 -0
  69. package/templates/state/zustand/src/index.ts +2 -0
  70. package/templates/state/zustand/src/theme/useThemeStore.ts +27 -0
  71. package/templates/styles/css/src/main.css +0 -0
  72. package/templates/styles/scss/src/main.scss +0 -0
  73. package/templates/styles/tailwind/config/_vite.config.ts +14 -0
  74. package/templates/styles/tailwind/src/main.css +123 -0
  75. package/templates/ui/shadcn/src/components/ui/button.tsx +62 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "vite-project",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc -b && vite build",
9
+ "lint": "eslint .",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "react": "^19.2.0",
14
+ "react-dom": "^19.2.0"
15
+ },
16
+ "devDependencies": {
17
+ "@eslint/js": "^9.39.1",
18
+ "@types/node": "^24.10.1",
19
+ "@types/react": "^19.2.5",
20
+ "@types/react-dom": "^19.2.3",
21
+ "@vitejs/plugin-react-swc": "^4.2.2",
22
+ "eslint": "^9.39.1",
23
+ "eslint-plugin-react-hooks": "^7.0.1",
24
+ "eslint-plugin-react-refresh": "^0.4.24",
25
+ "globals": "^16.5.0",
26
+ "typescript": "~5.9.3",
27
+ "typescript-eslint": "^8.46.4",
28
+ "vite": "^7.2.4"
29
+ }
30
+ }