Command Reference
Root and workspace package.json files own the executable scripts. Run pnpm run to list root scripts or pnpm --filter @kartuli/game-client run to list a workspace's scripts. Read the relevant manifest for exact implementation; this page keeps only common entry points and operational caveats.
Start with Node/pnpm for the pinned toolchain.
| Task | Root command | Boundary |
|---|---|---|
| Validate changes | pnpm run validate:all | Lint, typecheck and workspace tests, including documentation contracts |
| Build all surfaces | pnpm run build:all | Production builds; separate from validation |
| Generate coverage | pnpm run test:all:coverage | Root Vitest projects; excludes Storybook and E2E |
| Work on one surface | pnpm run c:dev:game-client | Equivalent scripts exist for Backoffice, Storybook and Web Docs |
| Build or preview one surface | pnpm run c:build:game-client, pnpm run c:preview:game-client | Inspect target-specific preview behavior below |
| Run a target's E2E | pnpm e2e game-client | Builds and previews that target, then runs its suite. --url uses an existing server instead |
| Build documentation | pnpm run c:build:web-docs-client | Validates source/navigation, renders and checks the built index |
| Inspect dependency diagrams | pnpm run diagrams:all | Requires local Graphviz dot |
| Run Lighthouse | pnpm run lighthouse --collect.url=<public-url> | One assertion-free mobile run; uploads to temporary public storage |
| Render Lighthouse result | pnpm run lighthouse:summary --requested-url=<public-url> --audit-outcome=success --output=lighthouse-summary.md | Reads .lighthouseci/ and fails on incomplete metrics or report-link mapping |
Execution differences
*:no-cachescripts force Turbo execution;turbo:cache:wiperemoves the local Turbo cache.lint:all:fixandlint:root:fixmodify files; ordinary lint checks do not.test:allincludes Storybook Chromium tests and the dependency-free Lighthouse reporter tests. Coverage has a different UI-test scope but also runs the reporter tests; see Testing.- App preview builds then starts. Game Client development/start/preview uses port 3000; Backoffice uses port 3001 for the same local lifecycle.
pnpm e2e <target>starts that preview itself.--reuse-serverattaches only when the process already identifies as the selected target. - Storybook preview serves existing
storybook-staticthrough its currentnpx http-serverscript; it does not build first.pnpm e2e storybookbuilds and then serves. See Toolchain support for that undeclared executable and the pnpm-only contributor convention. - Docs preview builds first; direct
vitepress previewserves an existing build only.pnpm e2e web-docs-clientuses the preview script, which builds. Its local base path is/kartuli. - E2E target, suite, URL and server lifecycle come from
pnpm e2e. See E2E Runner. - Lighthouse can upload reports to temporary public storage; inspect its quality guide before running against sensitive pages.
Use the owning tool guides for prerequisites, expected output and failure diagnosis. When scripts change, update affected workflows and these operational distinctions without copying the entire manifest into Markdown.