Skip to content

Deployment

GateCommandWhat it checks
Typecheckpnpm typecheckTypeScript across library + demo
Unit testspnpm testVitest (render plans, views, helpers)
Library buildpnpm buildESM dist/ + declaration emit
npm surfacepnpm pack:checkTarball contains only publishable files; bundle badge
Docs buildpnpm docs:buildStarlight site compiles
Full verifypnpm verifyAll of the above
E2E demopnpm test:e2ePlaywright against the Vite demo (WebGPU required)

For WebGPU or demo changes, also smoke-test pnpm dev in a browser with native WebGPU. The e2e suite fails in CI when Chromium cannot start the WebGPU demo — it does not treat a missing GPU as a passing fallback.

Terminal window
pnpm docs:dev # Starlight dev server
pnpm docs:build # production build (included in verify)
pnpm docs:preview # preview the built site

Demo build for Pages embedding:

Terminal window
pnpm run build:demo:docs

The Astro config uses the repository Pages URL:

export default defineConfig({
site: "https://tonyblu331.github.io",
base: "/threejs-debug-view",
})

The workflow at .github/workflows/quality.yml validates package and docs builds on pull requests and master pushes. The workflow at .github/workflows/deploy-docs.yml builds the live demo, builds packages/docs, and deploys the generated site with GitHub Pages.