Local development
The workspace root has three targets for local development: one prepares your machine, one checks it, and one runs your projects.
Prepare your machine once
pnpm nx run my-workspace:dev-setup
pnpm nx run my-workspace:dev-doctordev-setup prepares the local HTTPS gateway. You run it once per machine. dev-doctor inspects that setup and reports what is missing. The root project is named after your workspace, so replace my-workspace with your workspace name.
Run the workspace
pnpm nx run my-workspace:devThe root dev target runs the local fleet: your Slices together behind the local gateway. Each Slice also has its own dev target. A Slice consumes the Foundation of the development stage, so its dev target first runs foundation-preflight, which checks that the Foundation is deployed. Deploy the development stage before you start.
Check as you go
pnpm nx run billing:test
pnpm nx run billing:typecheck
pnpm nx run billing:verifyA Slice’s verify target runs its lint, typecheck, test and build targets. Run pnpm verify at the workspace root before you hand work off.
Continue building