reference2 min readv1
Targets
Run a target with pnpm nx run <project>:<target>.
Slice targets (12)
| Target | What it does |
|---|---|
build | Builds the web app. |
lint | Runs ESLint. |
typecheck | Runs the TypeScript compiler without emitting. |
test | Runs the Vitest tests. |
verify | Runs lint, typecheck, test and build. |
dev | Runs the Slice locally, after foundation-preflight. |
dev-cleanup | Removes this worktree’s development task stack of the Slice. |
deploy | Deploys the Slice, after verify and foundation-preflight. |
refresh | Refreshes SST state. |
remove | Removes the Slice’s deployed resources. |
unlock | Releases a stuck SST state lock. |
foundation-preflight | Validates the deployed Foundation contract the Slice depends on. |
These are the targets of a default Slice, which declares no SQL database. A Slice that declares one has more, for its local database and its migrations, and its dev-cleanup also stops this worktree’s PostgreSQL container and removes its network, keeping the data volume.
Workspace root targets (7)
| Target | What it does |
|---|---|
dev | Runs your Slices together on your machine. |
dev-setup | Creates or updates the local HTTPS gateway. |
dev-doctor | Inspects the local setup without changing it. |
deploy-local | Deploys the workspace to development from your machine. |
deployment-plan | Prints the ordered projects for a stage and action. |
verify | Runs workspace-health. |
workspace-health | Checks ownership records, the pnpm workspace entry and toolchain pins. |
Root scripts
| Script | What it does |
|---|---|
pnpm verify | Checks formatting, then runs verify for every project. |
pnpm build | Builds every project. |
pnpm test | Tests every project. |
pnpm lint | Lints every project. |
pnpm typecheck | Typechecks every project. |
pnpm format | Formats the workspace. |
pnpm health | Runs workspace-health. |
Continue building