mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 10:24:02 +00:00
feat(WHE-27): add drizzle db package and typed env config
This commit is contained in:
@@ -21,6 +21,9 @@ 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
|
||||
@@ -42,6 +45,10 @@ bun run review:coderabbit
|
||||
- Linting uses `oxlint`.
|
||||
- Formatting uses `oxfmt` with no-semicolon style.
|
||||
- AI review uses CodeRabbit CLI in `--prompt-only` mode against `main`.
|
||||
- Drizzle config is in `packages/db/drizzle.config.ts`.
|
||||
- Typed environment validation lives in `packages/config/src/env.ts`.
|
||||
- Copy `.env.example` to `.env` before running app/database commands.
|
||||
- Migration workflow is documented in `docs/runbooks/migrations.md`.
|
||||
|
||||
## CI/CD
|
||||
|
||||
@@ -52,3 +59,4 @@ bun run review:coderabbit
|
||||
- `GCP_PROJECT_ID`
|
||||
- `GCP_WORKLOAD_IDENTITY_PROVIDER`
|
||||
- `GCP_SERVICE_ACCOUNT`
|
||||
- optional for automated migrations: `DATABASE_URL`
|
||||
|
||||
Reference in New Issue
Block a user