Skip to Content

Scripts

Every command in the root package.json.

CommandWhat it does
pnpm devall apps
pnpm dev:webweb and api
pnpm dev:dashboarddashboard and api
pnpm buildbuild everything with turbo
pnpm checkbiome format and fix
pnpm lintbiome and oxlint, no fixes
pnpm i18n:checkfails when an English key is missing or unused, or a translation has a key English lacks
pnpm check-typestypescript across the repo
pnpm testtests in every package, against postgres (pnpm db:up first)
pnpm test:e2eplaywright tests of web, dashboard and api on the demo seed
pnpm guide:shotsretake the staff guide screenshots, see below
pnpm db:up / db:downlocal postgres
pnpm db:generatewrite a migration from the schema
pnpm db:migrateapply migrations
pnpm db:seedseed the demo data
pnpm db:studiobrowse the database
pnpm ui:add <component>add a shadcn component to packages/ui

Run a single app with turbo, for example pnpm turbo dev -F docs.

Guide screenshots

pnpm guide:shots rebuilds every image in apps/docs/assets/guide. It needs Postgres (pnpm db:up, or point DATABASE_URL at yours) and chromium (pnpm --filter e2e install:browser). It recreates the database ritorno_guide, seeds the demo, builds web and dashboard, serves them with the api on ports 4292 to 4294 with log only providers, and shoots them in English. GUIDE_REUSE=1 shoots against servers already running on those ports.

The shots and their numbered callouts are in apps/e2e/guide/staff.shots.ts. The numbers follow the order of the callouts there, and the lists in content/docs/guide follow the same order, so change both together. When a page changes, rerun and commit the images that moved.

On this page