A1: foundation scaffold (Next.js 15, shadcn/Radix, Drizzle+Postgres, Vitest, Docker)

- Next.js 15 + TS strict + Tailwind 4 + ESLint 9
- shadcn/ui initialized (Radix, CSS variables); cn() util
- Drizzle + postgres driver + Zod; db client + schema placeholder (A2)
- Vitest with passing cn() test; GitHub Actions CI
- Portable container stack: multi-stage non-root Dockerfile, docker-compose (app + Postgres on host 5433)
- Verified: typecheck, lint, test (3), build, docker build, HTTP 200 on :3000
- Records the 5 pre-build decisions (email-only launch, SMS deferred)
This commit is contained in:
Tiel Coder
2026-11-17 18:09:24 +00:00
commit c595865496
39 changed files with 10908 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { defineConfig } from "vitest/config";
import { resolve } from "path";
export default defineConfig({
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
test: {
// Domain logic (src/domain/**) is pure — node env is correct there.
// UI/component tests opt into jsdom per-file via `// @vitest-environment jsdom`.
environment: "node",
globals: true,
include: ["src/**/*.{test,spec}.ts", "src/**/*.{test,spec}.tsx"],
},
});