Skip to content
Empire Builder KitDocumentation
v1 Documentation

Find your next step.

Search the complete documentation, including code examples.

    Full-text search↑ ↓ navigate Enter open
    Browse documentation
    DocsReference

    Targets

    Run a target with pnpm nx run <project>:<target>.

    On this page
    1. Slice targets (12)
    2. Workspace root targets (7)
    3. Root scripts

    Slice targets (12)

    TargetWhat it does
    buildBuilds the web app.
    lintRuns ESLint.
    typecheckRuns the TypeScript compiler without emitting.
    testRuns the Vitest tests.
    verifyRuns lint, typecheck, test and build.
    devRuns the Slice locally, after foundation-preflight.
    dev-cleanupRemoves this worktree’s development task stack of the Slice.
    deployDeploys the Slice, after verify and foundation-preflight.
    refreshRefreshes SST state.
    removeRemoves the Slice’s deployed resources.
    unlockReleases a stuck SST state lock.
    foundation-preflightValidates 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)

    TargetWhat it does
    devRuns your Slices together on your machine.
    dev-setupCreates or updates the local HTTPS gateway.
    dev-doctorInspects the local setup without changing it.
    deploy-localDeploys the workspace to development from your machine.
    deployment-planPrints the ordered projects for a stage and action.
    verifyRuns workspace-health.
    workspace-healthChecks ownership records, the pnpm workspace entry and toolchain pins.

    Root scripts

    ScriptWhat it does
    pnpm verifyChecks formatting, then runs verify for every project.
    pnpm buildBuilds every project.
    pnpm testTests every project.
    pnpm lintLints every project.
    pnpm typecheckTypechecks every project.
    pnpm formatFormats the workspace.
    pnpm healthRuns workspace-health.