Skip to the page
Docs for 0.2.0-rc.46

Reference for builders

Commands

Every pnpm command in the weemuu repo, and what it runs.

<!-- Written by pnpm docs:reference. Don't edit: change package.json and run it again. -->

Run these in the weemuu folder, for example pnpm check. They are for people working on weemuu itself; an installed Weemuu needs none of them.

Command Runs What it does
pnpm typecheck pnpm -r --parallel typecheck && tsc -p tsconfig.json Type-checks every package and the scripts.
pnpm lint eslint . ESLint over the repo.
pnpm test vitest run Every unit and repo test (Vitest).
pnpm audit pnpm audit --audit-level=moderate Fails on any known moderate or worse vulnerability in the dependencies.
pnpm secrets gitleaks git --redact --no-banner . Gitleaks over the whole git history.
pnpm a11y pnpm --filter @workforce/web a11y Builds the web app and runs the browser checks (axe and layout) at phone, touch and desktop sizes.
pnpm check pnpm typecheck && pnpm lint && pnpm test && pnpm run audit && pnpm secrets && pnpm a11y Everything CI runs: typecheck, lint, test, audit, secrets, a11y.
pnpm check:fast node scripts/check-fast.ts pnpm check:fast — the inner loop: typecheck everything (a few seconds), then lint and run the tests related to what changed against origin/main (committed, staged, unstaged, new).
pnpm vt node scripts/vt.ts pnpm vt <file|folder|filter>...
pnpm wt node scripts/wt.ts pnpm wt <branch> a worktree beside the main checkout, ready to work in: from origin/<branch> if it exists, else a new branch from origin/main; installed; its own .env (ports and databases no other checkout uses); its …
pnpm bootstrap node scripts/setup.ts One-time local setup.
pnpm prereqs node scripts/prereqs.ts Checks this machine without changing anything.
pnpm sandbox node --env-file-if-exists=.env scripts/sandbox.ts
pnpm owner-password node scripts/owner-password.ts Sets the owner's sign-in password.
pnpm setup-link node scripts/setup-link.ts Prints a one-time link that claims this Weemuu: whoever opens it within an hour sets the owner's name and password.
pnpm release node scripts/release.ts Builds a release for curl -fsSL https://weemuu.com/install | sh (plan doc: the one-line install).
pnpm dev pnpm --filter "./apps/*" --parallel dev Runs every app in development mode, rebuilt as you edit.
pnpm build node scripts/build.ts Builds what production runs: the web app (apps/web/dist, which crew-server serves).
pnpm docs node scripts/docs.ts serve docs.weemuu.com from apps/docs (docs/plans/docs-site.md).
pnpm docs:build node scripts/docs.ts build docs.weemuu.com from apps/docs (docs/plans/docs-site.md).
pnpm docs:reference node scripts/docs-reference.ts pnpm docs:reference: writes the reference pages that come from the code, so nobody types them.
pnpm docs:stale node scripts/docs-stale.ts pnpm docs:stale: the docs pages a change touches.
pnpm docs:shots pnpm --filter @workforce/web exec playwright test -c playwright.docs.config.ts Retakes the docs' screenshots: Playwright on the built web app with faked data.
pnpm start node scripts/serve.ts crew-server under a small supervisor: setup saves settings that need a fresh start, and crew-server then exits with code 75; this starts it again.
pnpm smoke bash scripts/smoke.sh The whole stack end to end on a clean machine, as CI runs it.
pnpm safety node scripts/safety.ts Runs the safety-rule suite (scripts/lib/safety.ts) against the test database, and fails if any of its tests fails or is skipped.
pnpm kit-lock node scripts/kit-lock.ts Makes a kit's locks, the exact files Weemuu may install for it, each with its sha256: - a pip kit: apps/crew-server/kits/<kit>.pins → <kit>.lock, every wheel for Python 3.12 on Linux (x64, arm64) and macOS arm64, read …
pnpm map node scripts/map.ts pnpm map: refresh the facts in docs/map (lines, fan-in, fan-out, coupling 1–5, cross-area imports) from the import graph.
pnpm logo node scripts/render-logo.ts pnpm logo: renders the Weemuu logo PNGs and the face stills from the creature itself, so the logo is the same yellow brand Weemuu the app draws with face({ name: "Weemuu" }) (the sidebar's), and a face without WebGL …