Set up pnpm workspaces with three packages: a shared Zod-schema package, a Hono-based API exported as a library, and a Vite/React/ Tailwind frontend that mounts the API via Cloudflare Pages Functions. Storage is abstracted behind an S3-compatible provider so the project can migrate from R2 to a self-hosted MinIO without code changes. https://claude.ai/code/session_01TPBqgcSJMppgrpiq7fLywL
35 lines
939 B
JSON
35 lines
939 B
JSON
{
|
|
"name": "@leetete/web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"deploy": "wrangler pages deploy dist --project-name stefanieeleandro",
|
|
"pages:dev": "wrangler pages dev dist --compatibility-flags=nodejs_compat"
|
|
},
|
|
"dependencies": {
|
|
"@leetete/api": "workspace:*",
|
|
"@leetete/shared": "workspace:*",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.28.0",
|
|
"zod": "^3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^4.20241218.0",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"autoprefixer": "^10.4.20",
|
|
"postcss": "^8.4.49",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "^5.6.3",
|
|
"vite": "^5.4.11",
|
|
"wrangler": "^3.95.0"
|
|
}
|
|
}
|