diff --git a/client/index.html b/client/index.html deleted file mode 100644 index a546081..0000000 --- a/client/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - Chessu - - -
- - - diff --git a/client/package.json b/client/package.json index 2e6fb9f..1a1ee70 100644 --- a/client/package.json +++ b/client/package.json @@ -1,28 +1,29 @@ { - "name": "chessu", + "name": "@chessu/client", "private": true, - "version": "0.0.0", - "type": "module", + "sideEffects": false, "scripts": { - "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview" + "build": "npm run build:css && remix build", + "build:css": "tailwindcss -m -i ./styles/app.css -o app/styles/app.css", + "dev": "concurrently \"npm run dev:css\" \"remix dev\"", + "dev:css": "tailwindcss -w -i ./styles/app.css -o app/styles/app.css", + "typecheck": "tsc" }, "dependencies": { - "@radix-ui/colors": "^0.1.8", - "@radix-ui/react-icons": "^1.1.1", - "chess.js": "^1.0.0-beta.1", + "@remix-run/node": "^1.12.0", + "@remix-run/react": "^1.12.0", + "@remix-run/vercel": "^1.12.0", + "@vercel/node": "^2.9.0", "react": "^18.2.0", - "react-chessboard": "^2.0.8", - "react-dom": "^18.2.0", - "react-router-dom": "^6.6.2", - "socket.io-client": "^4.5.4" + "react-dom": "^18.2.0" }, "devDependencies": { - "@types/react": "^18.0.26", + "@chessu/types": "*", + "@remix-run/dev": "^1.12.0", + "@remix-run/serve": "^1.12.0", + "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", - "@vitejs/plugin-react-swc": "^3.0.1", - "typescript": "^4.9.4", - "vite": "^4.0.4" + "tailwindcss": "^3.2.4", + "typescript": "^4.9.5" } } diff --git a/client/public/chessu.svg b/client/public/chessu.svg deleted file mode 100644 index cabe48a..0000000 --- a/client/public/chessu.svg +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/client/src/App.tsx b/client/src/App.tsx deleted file mode 100644 index 18bbb0c..0000000 --- a/client/src/App.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { Route, Routes } from "react-router-dom"; -import ContextProvider from "./context/ContextProvider"; - -import Header from "./components/Header/Header"; -import Footer from "./components/Footer/Footer"; - -import ProtectedRoutes from "./routes/ProtectedRoutes"; -import Home from "./routes/Home/Home"; -import Game from "./routes/Game/Game"; -import NotFound from "./routes/NotFound/NotFound"; - -import "./global.css"; - -const App = (): JSX.Element => { - return ( - -
-
- - } /> - }> - } /> - - } /> - -
-