@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.
- package/README.md +134 -0
- package/dist/index.js +81 -0
- package/dist/installers.js +23 -0
- package/dist/mapper.js +17 -0
- package/dist/packages.js +60 -0
- package/dist/questions.js +82 -0
- package/dist/types.js +1 -0
- package/dist/utils.js +74 -0
- package/package.json +65 -0
- package/templates/base/README.md +73 -0
- package/templates/base/eslint.config.js +23 -0
- package/templates/base/index.html +14 -0
- package/templates/base/package.json +30 -0
- package/templates/base/pnpm-lock.yaml +2105 -0
- package/templates/base/public/vite.svg +1 -0
- package/templates/base/src/App.tsx +9 -0
- package/templates/base/src/api/api.ts +29 -0
- package/templates/base/src/api/http.ts +27 -0
- package/templates/base/src/api/index.ts +2 -0
- package/templates/base/src/assets/react.svg +1 -0
- package/templates/base/src/layout/AuthLayout.tsx +0 -0
- package/templates/base/src/layout/MainLayout.tsx +0 -0
- package/templates/base/src/layout/index.ts +2 -0
- package/templates/base/src/main.tsx +9 -0
- package/templates/base/src/modules/auth/components/AuthForm.tsx +5 -0
- package/templates/base/src/modules/auth/hooks/useAuth.ts +43 -0
- package/templates/base/src/modules/auth/pages/ForgotPassword.tsx +5 -0
- package/templates/base/src/modules/auth/pages/Login.tsx +5 -0
- package/templates/base/src/modules/auth/pages/Register.tsx +5 -0
- package/templates/base/src/modules/auth/pages/index.ts +3 -0
- package/templates/base/src/modules/auth/services/auth.service.ts +17 -0
- package/templates/base/src/modules/auth/services/endpoint.ts +10 -0
- package/templates/base/src/modules/auth/services/index.ts +3 -0
- package/templates/base/src/modules/auth/services/oauth.service.ts +1 -0
- package/templates/base/src/modules/auth/services/password.service.ts +1 -0
- package/templates/base/src/modules/auth/types/auth.types.ts +3 -0
- package/templates/base/src/modules/auth/types/index.ts +3 -0
- package/templates/base/src/modules/auth/types/oauth.types.ts +1 -0
- package/templates/base/src/modules/auth/types/password.types.ts +1 -0
- package/templates/base/src/modules/common/pages/NotFound.tsx +9 -0
- package/templates/base/src/modules/common/pages/index.ts +1 -0
- package/templates/base/src/utils/api-error-handler.ts +25 -0
- package/templates/base/tsconfig.app.json +32 -0
- package/templates/base/tsconfig.json +13 -0
- package/templates/base/tsconfig.node.json +26 -0
- package/templates/base/vite-env.d.ts +1 -0
- package/templates/base/vite.config.ts +18 -0
- package/templates/hooks/index.ts +0 -0
- package/templates/hooks/useDebounce.ts +1 -0
- package/templates/hooks/useTheme.ts +1 -0
- package/templates/hooks/useThrottle.ts +1 -0
- package/templates/hooks/useWebStorage.ts +1 -0
- package/templates/router/react-router/src/components/ProtectedRoute.tsx +20 -0
- package/templates/router/react-router/src/components/PublicRoute.tsx +20 -0
- package/templates/router/react-router/src/modules/auth/routes/index.tsx +21 -0
- package/templates/router/react-router/src/routes/AppRoutes.tsx +18 -0
- package/templates/router/react-router/src/routes/index.ts +3 -0
- package/templates/router/tanstack-router/src/providers/TanstackRouterProvider.tsx +14 -0
- package/templates/router/tanstack-router/src/routes/__root.tsx +13 -0
- package/templates/router/tanstack-router/src/routes/_protected/index.tsx +10 -0
- package/templates/router/tanstack-router/src/routes/_protected.tsx +18 -0
- package/templates/router/tanstack-router/src/routes/_public/forgot-password.tsx +6 -0
- package/templates/router/tanstack-router/src/routes/_public/login.tsx +6 -0
- package/templates/router/tanstack-router/src/routes/_public/register.tsx +6 -0
- package/templates/router/tanstack-router/src/routes/_public.tsx +13 -0
- package/templates/state/react-query/src/ReactQueryProvider.tsx +15 -0
- package/templates/state/react-query/src/index.ts +1 -0
- package/templates/state/zustand/src/auth/useAuthStore.ts +29 -0
- package/templates/state/zustand/src/index.ts +2 -0
- package/templates/state/zustand/src/theme/useThemeStore.ts +27 -0
- package/templates/styles/css/src/main.css +0 -0
- package/templates/styles/scss/src/main.scss +0 -0
- package/templates/styles/tailwind/config/_vite.config.ts +14 -0
- package/templates/styles/tailwind/src/main.css +123 -0
- 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
|
+
}
|