mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 10:24:02 +00:00
1.3 KiB
1.3 KiB
Development Setup
Requirements
- Bun 1.3+
- Node.js 22+
First-time setup
bun install
Workspace commands
bun run lint
bun run lint:fix
bun run format
bun run format:check
bun run typecheck
bun run test
bun run build
bun run db:generate
bun run db:check
bun run db:migrate
App commands
bun run dev:bot
bun run dev:miniapp
Review commands
bun run review:coderabbit
Notes
- Type checking uses
tsgo(@typescript/native-preview). - Linting uses
oxlint. - Formatting uses
oxfmtwith no-semicolon style. - AI review uses CodeRabbit CLI in
--prompt-onlymode againstmain. - Drizzle config is in
packages/db/drizzle.config.ts. - Typed environment validation lives in
packages/config/src/env.ts. - Copy
.env.exampleto.envbefore running app/database commands. - Migration workflow is documented in
docs/runbooks/migrations.md.
CI/CD
- CI runs in parallel matrix jobs on push/PR to
main:format:check,lint,typecheck,test,build
- CD deploys on successful
mainCI completion (or manual dispatch). - CD is enabled when GitHub secrets are configured:
GCP_PROJECT_IDGCP_WORKLOAD_IDENTITY_PROVIDERGCP_SERVICE_ACCOUNT- optional for automated migrations:
DATABASE_URL