Nx Targets Reference

Mapping of engineering SOP phases to Nx targets.

Workspace Targets

The workspace project provides centralized targets for SEA™ codegen pipeline:

Target Alias Purpose Usage
check codegen-affected Quick validation (affected contexts only) nx run workspace:check
check-all codegen-all Full regeneration (all contexts) nx run workspace:check-all

Usage Examples

1
2
3
4
5
6
7
8
9
# Check affected contexts (fast, for local dev)
nx run workspace:check

# Regenerate all contexts (slow, for clean builds)
nx run workspace:check-all

# Alternative syntax (legacy)
nx run workspace:codegen-affected
nx run workspace:codegen-all

Per-Context Targets

Each bounded context (specs-<ctx>) project provides:

Target Purpose Example
all Full pipeline: AST → lint → IR → manifest → codegen nx run specs-sea:all

Core Commands

Command Purpose
nx run workspace:check Quick validation (affected)
nx run workspace:check-all Full regeneration
nx run specs-<ctx>:all Generate specific context
nx graph View dependency graph
nx affected:test Test changed projects

SOP Phase Mapping

Phase Nx Usage
1-2 Bootstrap create-nx-workspace, root project.json
3 Architecture ESLint module-boundary rules, tags
4 Local Stack nx run-commands for infra:up/down/reset
5 Observability Shared observability lib
6 Contracts contracts:generate, contracts:check
7 Generators nx g bounded-context, nx g adapter
8 Testing nx test <project>, nx e2e
9 Slices Feature flags via config lib
10-11 CI nx affected:* for incremental builds
12 Hardening Scheduled CI jobs

Rule Summary