test commit
This commit is contained in:
@@ -25,10 +25,14 @@
|
||||
|
||||
| Command | What it does |
|
||||
|---|---|
|
||||
| `npm run dev` | `node --env-file=.dev_env --watch src/index.js` (requires Node 20.6+) |
|
||||
| `npm run dev` | `node --env-file=.env --watch src/index.js` (requires Node 20.6+) |
|
||||
| `npm run dev:classic` | `node --watch src/index.js` (loads `.env` via dotenv) |
|
||||
| `npm run lint` | ESLint (flat config) |
|
||||
| `npm run lint:fix` | ESLint with `--fix` |
|
||||
| `npm run format` | Prettier write all |
|
||||
| `npm run format:check` | Prettier check only |
|
||||
| `npm test` | vitest run |
|
||||
| `npm run db:reset:test` | Reset SQLite DB + re-run migrations + seed (uses `.dev_env`) |
|
||||
| `npm run db:reset:test` | Reset SQLite DB + re-run migrations + seed (uses `.env`) |
|
||||
|
||||
### Build order (when changing both packages)
|
||||
|
||||
@@ -65,7 +69,7 @@ cd client && npm run build # full typecheck + build
|
||||
|
||||
## Notable quirks
|
||||
|
||||
- `.env` is gitignored. Use `.dev_env` in the server repo for local dev (it is committed). Copy `.env.example` to `.env` for custom config.
|
||||
- `.env` is gitignored. Copy `.env.example` to `.env` for local dev.
|
||||
- Vite dev server (client) relies on backend running at `127.0.0.1:3333`. Start server first.
|
||||
- Rich text rendering uses `shared/ui/RichTextMessageContent` (TipTap). Pass `tone="review"`, `tone="chat"`, or `tone="default"`.
|
||||
- `db:reset:test` runs `prisma migrate reset --force`, which destroys all data.
|
||||
|
||||
Reference in New Issue
Block a user