2.1 KiB
2.1 KiB
CLAUDE.md
Desa Darmasaba adalah platform manajemen desa digital untuk Desa Darmasaba, Badung, Bali. Melayani website publik (/darmasaba/*) dan admin CMS (/admin/*).
Commands
# Development
bun run dev # Start dev server (port 3000)
bun run build # Production build
bun run tsc --noEmit # Type-check only
# Testing
bun run test # All tests
bun run test:api # Unit tests (Vitest)
bun run test:e2e # E2E tests (Playwright)
# Database
bunx prisma migrate deploy # Apply migrations
bunx prisma migrate dev --name <name> # Create migration
bun run prisma/seed.ts # Seed database
bunx prisma studio # Interactive DB viewer
# Linting
bun eslint . --fix
Reference Docs
- Architecture, request flow, domain modules, key files: @.claude/ARCHITECTURE.md
- Database conventions, auth flow, file handling: @.claude/DATABASE.md
- Env vars, Docker, CI/CD, releasing: @.claude/DEPLOYMENT.md
Workflow for Code Changes
- Commit existing changes before starting new work
- Create plan at
MIND/PLAN/[plan-name].md - Create task at
MIND/PLAN/[task-name].md - Execute the task and update task progress
- Create summary at
MIND/SUMMARY/[summary-name].mdwhen done - Run build (
bun run build) to ensure no compile errors - Fix any build errors if they occur
- Commit all changes AFTER successful build
- Update version in
package.jsonfor every change - Push to new branch with format:
tasks/[task-name]/[what-is-being-done]/[date-time] - Push ke 2 Remote - Push ke 2 remote origin dan deploy
- Merge ke Branch - Merge ke branch target (biasanya
stguntuk staging atauproduntuk production) ke 2 remote origin dan deploy
GitHub Workflows
- publish.yml: Uses branch
main, stack env and image tag matching version frompackage.json. - re-pull.yml: Wait for
publish.ymlto complete successfully before running. Uses branchmain, stack env and stack namedesa-darmasaba.
After Progress
- Always give option to continue to GitHub workflows or not