Move architecture, testing, and dev tools detail into docs/ and reference them via @path pointers to keep CLAUDE.md slim. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Runtime
Default to Bun instead of Node.js everywhere:
bun <file>notnode/ts-nodebun testnotjest/vitestbun installnotnpm install/yarn/pnpmbun run <script>notnpm runbunx <pkg>notnpx- Bun auto-loads
.env— never use dotenv.
Common Commands
bun run dev # dev server with hot reload (bun --watch src/serve.ts)
bun run build # Vite production build
bun run start # production server (NODE_ENV=production)
bun run typecheck # tsc --noEmit
bun run lint # biome check src/
bun run lint:fix # biome check --write src/
# Database
bun run db:migrate # prisma migrate dev
bun run db:seed # seed demo data
bun run db:generate # regenerate prisma client
bun run db:studio # Prisma Studio GUI
bun run db:push # push schema without migration
# Tests
bun run test # all tests
bun run test:unit # tests/unit/
bun run test:integration # tests/integration/ — no server needed
bun run test:e2e # tests/e2e/ — requires Lightpanda Docker
Run a single test file: bun test tests/integration/auth.test.ts
Architecture
See @docs/ARCHITECTURE.md
Testing
See @docs/TESTING.md
Dev Tools
See @docs/DEV_TOOLS.md