stack88
Browse the documentation

Guides

The quality gate

pnpm check runs seven steps, CI runs the same seven, and nothing is committed until they pass.

Terminal
pnpm check

One command decides when a change is ready. It runs seven steps across every workspace, and CI runs the same seven as parallel jobs on every pull request and every push to dev or master.

The seven steps

Step What it checks
format:check Prettier formatting, including import order and Tailwind class order
lint oxlint with type information, plus the repository’s own rules for file roles
build every package and app, in dependency order
typecheck strict TypeScript; astro check in the Astro apps
test Vitest across every workspace, with no database, Docker or network
knip no unused files, exports or dependencies
depcruise the import boundaries between apps, packages and layers

Warnings fail lint. A file in the wrong folder, an import across a boundary, or an export nobody uses each fails the gate with the rule it broke.

While you work

Running the whole gate on every change is slow. Filter to the workspace you are in, then run pnpm check once before committing:

Terminal
pnpm --filter @my-app/web typecheck
pnpm --filter @my-app/api test

pnpm build, and so pnpm check, needs VITE_API_URL for the web app: the apps/web/.env written during setup provides it.

Tests without services

Every test suite runs without Docker or a network. The API’s smoke suite boots the real app in process against PGlite, an in-memory Postgres, runs the real migrations, and exercises auth, health probes, versioning, storage, mail and the OpenAPI document without opening a socket. CI runners need nothing beyond pnpm install.

The generator gate

pnpm test:gate is the eighth CI job. It generates code with kit into a copy of the repository and runs the checks on the result, so a template never drifts from the rules it is meant to follow. It takes about a minute, which is why it stays out of pnpm check. See Code generators.