feat(web): General upkeep add mise config

This commit is contained in:
Thomas Camlong
2025-11-28 10:48:18 +01:00
parent 556f3f8cb9
commit 9f41375984
7 changed files with 3613 additions and 89 deletions

52
web/.dockerignore Normal file
View File

@@ -0,0 +1,52 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# Cursor
.cursor
.env.local
# Turborepo
.turbo
# Pocketbase
backend/pocketbase
backend/pb_data
backend/pb_migrations

20
web/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
FROM base AS prod
COPY pnpm-lock.yaml .
RUN pnpm fetch --prod
COPY . .
RUN pnpm install
RUN pnpm run build
FROM base
COPY --from=prod /app/node_modules .
COPY --from=prod /app/.next .
EXPOSE 3000
CMD [ "pnpm", "start" ]

View File

@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
@@ -28,6 +28,11 @@
}
}
},
"css": {
"parser": {
"tailwindDirectives": true
}
},
"assist": {
"actions": {
"source": {

5
web/mise.toml Normal file
View File

@@ -0,0 +1,5 @@
[tools]
biome = "latest"
node = "latest"
pnpm = "latest"
"ubi:railwayapp/railpack" = "latest"

View File

@@ -5,6 +5,7 @@ const nextConfig: NextConfig = {
images: {
unoptimized: true,
},
output: "standalone",
};
export default nextConfig

View File

@@ -82,15 +82,14 @@
"zod": "^4.1.12"
},
"devDependencies": {
"@biomejs/biome": "2.2.4",
"@biomejs/biome": "2.3.7",
"@tailwindcss/postcss": "^4.1.13",
"@types/canvas-confetti": "^1.9.0",
"@types/node": "^24.10.1",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"tailwindcss": "^4.1.13",
"typescript": "^5.9.2",
"wrangler": "^4.42.2"
"typescript": "^5.9.2"
},
"packageManager": "pnpm@10.18.2",
"pnpm": {
@@ -104,4 +103,4 @@
"workerd"
]
}
}
}

3610
web/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff