Local development
Commands
| Command | Does |
|---|---|
make setup | npm ci from the lockfile |
make build | tools/build.mjs: spec copies, studio-system (tokens and Swift), fonts into StudioKit, every workspace's build, the gallery, the site |
make dev | Serves the repository on http://localhost:4800 (PORT=… to change) |
make site-serve | Serves public/ alone on 4800 |
make validate | Every non-browser check with a result table; STRICT=1 fails on SKIPPED |
make e2e | Chromium checks; starts its own server on 4800 |
make syntax | The Swift syntax gate |
make fonts | Rebuilds packages/system/fonts/ from the pinned npm sources (Python 3 with fonttools and brotli) |
make shots | docs/screenshot.png from the web example at 1440 px |
make dist | dist/studio-design-2.0.0.zip and .sha256, tracked files only |
make apple | Xcode steps; runs them on a Mac |
Where things are generated
| Change | Then run | Rewrites |
|---|---|---|
packages/system/DESIGN.md | npm run build | packages/system/dist/, StudioTokens.swift, root DESIGN.md, public/ |
A document, AGENTS.md, the manifest, the version | node tools/site.mjs | public/docs/, public/llm.txt, index.html |
demos/gallery/ | node tools/gallery.mjs | public/components/ |
apps/web/ | npm run build | public/app/ |
Portico
@stationmodules/portico is installed from vendor/portico-3.0.0.tgz, npm pack of Portico 3.0.0 (ADR 0004). No sibling checkout is needed. To take a new Portico, pack it, replace the tarball, update vendor/SHA256SUMS, and npm install.
Lockfile
Change package-lock.json only by npm install with node_modules present, so additions are recorded and the cross-platform binaries stay. tools/check-lockfile.mjs fails when esbuild's binaries for linux-x64, linux-arm64 or darwin-arm64 are missing; restore the lockfile and reinstall, never delete it.