Skip to content
Studio

Local development

Commands

CommandDoes
make setupnpm ci from the lockfile
make buildtools/build.mjs: spec copies, studio-system (tokens and Swift), fonts into StudioKit, every workspace's build, the gallery, the site
make devServes the repository on http://localhost:4800 (PORT=… to change)
make site-serveServes public/ alone on 4800
make validateEvery non-browser check with a result table; STRICT=1 fails on SKIPPED
make e2eChromium checks; starts its own server on 4800
make syntaxThe Swift syntax gate
make fontsRebuilds packages/system/fonts/ from the pinned npm sources (Python 3 with fonttools and brotli)
make shotsdocs/screenshot.png from the web example at 1440 px
make distdist/studio-design-2.0.0.zip and .sha256, tracked files only
make appleXcode steps; runs them on a Mac

Where things are generated

ChangeThen runRewrites
packages/system/DESIGN.mdnpm run buildpackages/system/dist/, StudioTokens.swift, root DESIGN.md, public/
A document, AGENTS.md, the manifest, the versionnode tools/site.mjspublic/docs/, public/llm.txt, index.html
demos/gallery/node tools/gallery.mjspublic/components/
apps/web/npm run buildpublic/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.

Contents