Skrypty projektu
Skrypty Bun: dev, jakość, DB, testy, deploy.
Pełna treść jest utrzymywana po angielsku i może być uzupełniana sukcesywnie. Poniżej znajduje się lokalna wersja / mapa tej strony.
Everyday
| Command | What it does |
|---|---|
bun run dev | Next.js dev |
bun run build / start | Production |
bun run check | i18n + Vite+ check |
bun run check:fix | Auto-fix where possible |
bun run lint / fmt | Lint / format |
Data
| Command | What it does |
|---|---|
bun run db:generate | Drizzle migration from schema |
bun run db:migrate | Apply migrations |
bun run db:push | Push schema (prototyping) |
bun run db:studio | Drizzle Studio |
bun run db:studio:preview / :production | Studio against .env.preview.local / .env.production.local |
bun run db:migrate:preview / :production | Migrate a specific environment (deliberate, explicit target) |
bun run env:pull:preview / :production | Pull the full Vercel env into the matching .env.*.local |
Tests
| Command | What it does |
|---|---|
bun run test | All Vitest projects |
bun run test:unit / component / integration | Scoped |
bun run test:coverage | Coverage thresholds |
bun run test:e2e:smoke | Playwright smoke |
Deploy
bun run deploy:preview · bun run deploy:prod (Vercel CLI).