chore: adopt biome for linting and formatting, wire turbo env, add ci workflow

This commit is contained in:
Jose Selesan
2026-10-15 15:39:17 -03:00
parent a95d14688a
commit ae11863613
40 changed files with 182 additions and 107 deletions

View File

@@ -32,7 +32,7 @@ cp apps/web/.env.example apps/web/.env
Run everything in parallel:
```bash
bun run dev # turbo run dev → api on :3000, web on :5173
bun run dev # turbo run dev → api on :4100, web on :7153
```
Or a single workspace: `bun run dev --filter=@superlist/web`.
@@ -41,21 +41,24 @@ Or a single workspace: `bun run dev --filter=@superlist/web`.
```bash
bun run build # turbo run build
bun run lint # biome check (per package)
bun run lint # biome check per package (lint + format + import order)
bun run typecheck # tsc
bun run test # bun test (api) / vitest (web, shared)
```
CI (`.github/workflows/ci.yml`) runs `db:generate` → `lint:ci` → `typecheck` → `test` → `build` on every push
to `main` and every pull request.
## Useful scripts
| Command | Effect |
| --------------------- | ---------------------------------------------------------- |
| `bun run lint:fix` | Apply Biome's safe fixes across the repo |
| `bun run lint:ci` | `biome ci` — lint the whole repo exactly as CI would |
| `bun run format` | Format the repo with Prettier |
| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
| `bun run db:migrate` | Create and apply a migration (development) |
| `bun run db:studio` | Open Prisma Studio |
| Command | Effect |
| --------------------- | ------------------------------------------------------------------- |
| `bun run lint:fix` | Apply Biome fixes: lint, formatting and import sorting (whole repo) |
| `bun run lint:ci` | `biome ci` — check the whole repo exactly as CI does |
| `bun run format` | Format with Biome (`format:check` to verify only) |
| `bun run db:generate` | Regenerate the Prisma client into `apps/api/src/generated` |
| `bun run db:migrate` | Create and apply a migration (development) |
| `bun run db:studio` | Open Prisma Studio |
## Auth