Development Workflow
How to set up and work with the Static UI monorepo.
Prerequisites
- Node.js 20+
- PNPM 11.5+
- Git
Setup
Bash
Development Loop
- Make changes in the appropriate package
- Run
pnpm typecheckto verify types - Run
pnpm testto run tests - Run
pnpm lintfor code quality - Commit using conventional commits (enforced by commitlint)
- Push — CI will run all checks automatically
Pre-commit Hooks
Husky automatically runs:
- pre-commit: lint-staged (eslint + prettier on staged files)
- commit-msg: commitlint (conventional commit validation)
- pre-push: typecheck + build
Adding a New Component
- Create the component file in
packages/ui/src/ - Export it from
packages/ui/src/index.ts - Add entry to
packages/registry/registry.json - Add dependency override in
build-registry.tsif needed - Run
pnpm registryto rebuild the registry - Run
pnpm validate:registryto verify