From 36ea3fa0eed7f2504a83565424f7473995d34648 Mon Sep 17 00:00:00 2001 From: Anurag Pramanik Date: Fri, 15 Dec 2023 00:55:11 +0530 Subject: [PATCH] fix: use more concise dir name --- {server => backend}/config/db.ts | 0 {server => backend}/controllers/goalController.ts | 0 {server => backend}/controllers/userController.ts | 0 {server => backend}/global.d.ts | 0 {server => backend}/index.ts | 0 {server => backend}/middleware/authMiddleware.ts | 0 {server => backend}/middleware/errorMiddleware.ts | 0 {server => backend}/models/goalModel.ts | 0 {server => backend}/models/userModel.ts | 0 {server => backend}/routes/goalRoutes.ts | 0 {server => backend}/routes/userRoutes.ts | 0 {client => frontend}/.gitignore | 0 {client => frontend}/index.html | 0 {client => frontend}/package-lock.json | 0 {client => frontend}/package.json | 0 {client => frontend}/public/react.svg | 0 {client => frontend}/public/vite.svg | 0 {client => frontend}/src/App.css | 0 {client => frontend}/src/App.tsx | 0 {client => frontend}/src/app/store.tsx | 0 {client => frontend}/src/components/GoalForm.tsx | 0 {client => frontend}/src/components/GoalItem.tsx | 0 {client => frontend}/src/components/Header.tsx | 0 {client => frontend}/src/components/Spinner.tsx | 0 {client => frontend}/src/features/auth/authService.tsx | 0 {client => frontend}/src/features/auth/authSlice.tsx | 0 {client => frontend}/src/features/goals/goalService.tsx | 0 {client => frontend}/src/features/goals/goalSlice.tsx | 0 {client => frontend}/src/index.css | 0 {client => frontend}/src/main.tsx | 0 {client => frontend}/src/pages/Dashboard.tsx | 0 {client => frontend}/src/pages/Login.tsx | 0 {client => frontend}/src/pages/Register.tsx | 0 {client => frontend}/src/vite-env.d.ts | 0 {client => frontend}/tsconfig.json | 0 {client => frontend}/tsconfig.node.json | 0 {client => frontend}/vite.config.ts | 0 package.json | 2 +- tsconfig.json | 2 +- 39 files changed, 2 insertions(+), 2 deletions(-) rename {server => backend}/config/db.ts (100%) rename {server => backend}/controllers/goalController.ts (100%) rename {server => backend}/controllers/userController.ts (100%) rename {server => backend}/global.d.ts (100%) rename {server => backend}/index.ts (100%) rename {server => backend}/middleware/authMiddleware.ts (100%) rename {server => backend}/middleware/errorMiddleware.ts (100%) rename {server => backend}/models/goalModel.ts (100%) rename {server => backend}/models/userModel.ts (100%) rename {server => backend}/routes/goalRoutes.ts (100%) rename {server => backend}/routes/userRoutes.ts (100%) rename {client => frontend}/.gitignore (100%) rename {client => frontend}/index.html (100%) rename {client => frontend}/package-lock.json (100%) rename {client => frontend}/package.json (100%) rename {client => frontend}/public/react.svg (100%) rename {client => frontend}/public/vite.svg (100%) rename {client => frontend}/src/App.css (100%) rename {client => frontend}/src/App.tsx (100%) rename {client => frontend}/src/app/store.tsx (100%) rename {client => frontend}/src/components/GoalForm.tsx (100%) rename {client => frontend}/src/components/GoalItem.tsx (100%) rename {client => frontend}/src/components/Header.tsx (100%) rename {client => frontend}/src/components/Spinner.tsx (100%) rename {client => frontend}/src/features/auth/authService.tsx (100%) rename {client => frontend}/src/features/auth/authSlice.tsx (100%) rename {client => frontend}/src/features/goals/goalService.tsx (100%) rename {client => frontend}/src/features/goals/goalSlice.tsx (100%) rename {client => frontend}/src/index.css (100%) rename {client => frontend}/src/main.tsx (100%) rename {client => frontend}/src/pages/Dashboard.tsx (100%) rename {client => frontend}/src/pages/Login.tsx (100%) rename {client => frontend}/src/pages/Register.tsx (100%) rename {client => frontend}/src/vite-env.d.ts (100%) rename {client => frontend}/tsconfig.json (100%) rename {client => frontend}/tsconfig.node.json (100%) rename {client => frontend}/vite.config.ts (100%) diff --git a/server/config/db.ts b/backend/config/db.ts similarity index 100% rename from server/config/db.ts rename to backend/config/db.ts diff --git a/server/controllers/goalController.ts b/backend/controllers/goalController.ts similarity index 100% rename from server/controllers/goalController.ts rename to backend/controllers/goalController.ts diff --git a/server/controllers/userController.ts b/backend/controllers/userController.ts similarity index 100% rename from server/controllers/userController.ts rename to backend/controllers/userController.ts diff --git a/server/global.d.ts b/backend/global.d.ts similarity index 100% rename from server/global.d.ts rename to backend/global.d.ts diff --git a/server/index.ts b/backend/index.ts similarity index 100% rename from server/index.ts rename to backend/index.ts diff --git a/server/middleware/authMiddleware.ts b/backend/middleware/authMiddleware.ts similarity index 100% rename from server/middleware/authMiddleware.ts rename to backend/middleware/authMiddleware.ts diff --git a/server/middleware/errorMiddleware.ts b/backend/middleware/errorMiddleware.ts similarity index 100% rename from server/middleware/errorMiddleware.ts rename to backend/middleware/errorMiddleware.ts diff --git a/server/models/goalModel.ts b/backend/models/goalModel.ts similarity index 100% rename from server/models/goalModel.ts rename to backend/models/goalModel.ts diff --git a/server/models/userModel.ts b/backend/models/userModel.ts similarity index 100% rename from server/models/userModel.ts rename to backend/models/userModel.ts diff --git a/server/routes/goalRoutes.ts b/backend/routes/goalRoutes.ts similarity index 100% rename from server/routes/goalRoutes.ts rename to backend/routes/goalRoutes.ts diff --git a/server/routes/userRoutes.ts b/backend/routes/userRoutes.ts similarity index 100% rename from server/routes/userRoutes.ts rename to backend/routes/userRoutes.ts diff --git a/client/.gitignore b/frontend/.gitignore similarity index 100% rename from client/.gitignore rename to frontend/.gitignore diff --git a/client/index.html b/frontend/index.html similarity index 100% rename from client/index.html rename to frontend/index.html diff --git a/client/package-lock.json b/frontend/package-lock.json similarity index 100% rename from client/package-lock.json rename to frontend/package-lock.json diff --git a/client/package.json b/frontend/package.json similarity index 100% rename from client/package.json rename to frontend/package.json diff --git a/client/public/react.svg b/frontend/public/react.svg similarity index 100% rename from client/public/react.svg rename to frontend/public/react.svg diff --git a/client/public/vite.svg b/frontend/public/vite.svg similarity index 100% rename from client/public/vite.svg rename to frontend/public/vite.svg diff --git a/client/src/App.css b/frontend/src/App.css similarity index 100% rename from client/src/App.css rename to frontend/src/App.css diff --git a/client/src/App.tsx b/frontend/src/App.tsx similarity index 100% rename from client/src/App.tsx rename to frontend/src/App.tsx diff --git a/client/src/app/store.tsx b/frontend/src/app/store.tsx similarity index 100% rename from client/src/app/store.tsx rename to frontend/src/app/store.tsx diff --git a/client/src/components/GoalForm.tsx b/frontend/src/components/GoalForm.tsx similarity index 100% rename from client/src/components/GoalForm.tsx rename to frontend/src/components/GoalForm.tsx diff --git a/client/src/components/GoalItem.tsx b/frontend/src/components/GoalItem.tsx similarity index 100% rename from client/src/components/GoalItem.tsx rename to frontend/src/components/GoalItem.tsx diff --git a/client/src/components/Header.tsx b/frontend/src/components/Header.tsx similarity index 100% rename from client/src/components/Header.tsx rename to frontend/src/components/Header.tsx diff --git a/client/src/components/Spinner.tsx b/frontend/src/components/Spinner.tsx similarity index 100% rename from client/src/components/Spinner.tsx rename to frontend/src/components/Spinner.tsx diff --git a/client/src/features/auth/authService.tsx b/frontend/src/features/auth/authService.tsx similarity index 100% rename from client/src/features/auth/authService.tsx rename to frontend/src/features/auth/authService.tsx diff --git a/client/src/features/auth/authSlice.tsx b/frontend/src/features/auth/authSlice.tsx similarity index 100% rename from client/src/features/auth/authSlice.tsx rename to frontend/src/features/auth/authSlice.tsx diff --git a/client/src/features/goals/goalService.tsx b/frontend/src/features/goals/goalService.tsx similarity index 100% rename from client/src/features/goals/goalService.tsx rename to frontend/src/features/goals/goalService.tsx diff --git a/client/src/features/goals/goalSlice.tsx b/frontend/src/features/goals/goalSlice.tsx similarity index 100% rename from client/src/features/goals/goalSlice.tsx rename to frontend/src/features/goals/goalSlice.tsx diff --git a/client/src/index.css b/frontend/src/index.css similarity index 100% rename from client/src/index.css rename to frontend/src/index.css diff --git a/client/src/main.tsx b/frontend/src/main.tsx similarity index 100% rename from client/src/main.tsx rename to frontend/src/main.tsx diff --git a/client/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx similarity index 100% rename from client/src/pages/Dashboard.tsx rename to frontend/src/pages/Dashboard.tsx diff --git a/client/src/pages/Login.tsx b/frontend/src/pages/Login.tsx similarity index 100% rename from client/src/pages/Login.tsx rename to frontend/src/pages/Login.tsx diff --git a/client/src/pages/Register.tsx b/frontend/src/pages/Register.tsx similarity index 100% rename from client/src/pages/Register.tsx rename to frontend/src/pages/Register.tsx diff --git a/client/src/vite-env.d.ts b/frontend/src/vite-env.d.ts similarity index 100% rename from client/src/vite-env.d.ts rename to frontend/src/vite-env.d.ts diff --git a/client/tsconfig.json b/frontend/tsconfig.json similarity index 100% rename from client/tsconfig.json rename to frontend/tsconfig.json diff --git a/client/tsconfig.node.json b/frontend/tsconfig.node.json similarity index 100% rename from client/tsconfig.node.json rename to frontend/tsconfig.node.json diff --git a/client/vite.config.ts b/frontend/vite.config.ts similarity index 100% rename from client/vite.config.ts rename to frontend/vite.config.ts diff --git a/package.json b/package.json index e6883c3..fc43e2f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Anurag Pramanik ", "main": "build/index.js", "scripts": { - "build": "tsc && npm install --prefix client && npm run build --prefix client", + "build": "tsc && npm install --prefix frontend && npm run build --prefix frontend", "dev": "node --watch build/index.js", "start": "node build/index.js", "watch": "tsc -w" diff --git a/tsconfig.json b/tsconfig.json index 76ed6f3..5fdbcce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,5 +24,5 @@ "baseUrl": "." }, "exclude": ["node_modules"], - "include": ["./server/**/*.ts"] + "include": ["backend/**/*.ts"] }