Recipe
Nx Monorepo
Fast, first-class monorepo orchestration with Nx for TypeScript at scale.
Why Nx
Nx provides computation caching, task orchestration, and code generation out of the box. It understands your project graph so you never rebuild what hasn't changed.
Scaffold
npx create-nx-workspace@latest meridian --preset=tsProject structure
apps/
api/
dashboard/
libs/
shared/
auth/
nx.json
tsconfig.base.jsonKey commands
- ▸
nx graph— visualize dependency graph - ▸
nx run-many -t build— build all affected - ▸
nx affected:test— test only what changed
Caching
Nx stores task outputs in a local cache. Add nx-cloud to share the cache across CI machines for near-instant rebuilds.
Meridian uses Nx internally for the loader, dashboard, and shared crypto libraries. See the CI/CD recipe for integration.