Skip to content

Minimal Setup

Minimal Setup covers most TypeScript changes, stable core unit tests, representative Vite and local Wrangler builds, and docs source checks. Use the Full Setup (Nix + devenv) when your work needs browsers, generated sources, a SQLite distribution rebuild, releases, infrastructure, or final repository-wide validation.

Install Node.js 24, Bun, and the pnpm version declared by package.json#packageManager using the official pnpm installation options. Confirm the tools resolved from your shell:

Terminal window
node --version
bun --version
pnpm --version

Run a frozen install from the repository root:

Terminal window
pnpm install --frozen-lockfile

./scripts/bootstrap-minimal.sh is an optional diagnostic for people and agents. It checks the same prerequisites and runs the frozen install, without installing or upgrading tools globally.

Setup only makes dependencies ready. Run the checks that match your work:

WorkCommand
Core TypeScriptpnpm exec tsc -b packages/@livestore/livestore --pretty false
Stable core unitspnpm --filter @livestore/common exec vitest run
Vite examplepnpm --filter livestore-example-web-todomvc run build
Cloudflare Workerpnpm --filter livestore-example-cloudflare-todomvc run build
Docs sourcepnpm --filter @local/docs run check

Before a maintainer-ready handoff, use the full setup for any required checks outside this table and rely on the complete CI bar.

Docker provides a familiar, known-good realization and is also the CI regression oracle for this lane:

Terminal window
docker compose build
LOCAL_UID="$(id -u)" LOCAL_GID="$(id -g)" docker compose run --rm development

The image ships its install under /app, while Compose bind-mounts your fresh checkout at /workspace. Prepare the mounted checkout once inside the container before working in it:

Terminal window
./scripts/bootstrap-minimal.sh

Compose bind-mounts the source tree. Use an exclusive checkout and do not run host and container installs concurrently. The image intentionally omits browsers, generated-source tooling, Nix, release state, and infrastructure tools.