Monorepo Shared Libraries: Granularity and Ownership Guide
Learn how to size, own and evolve monorepo shared libraries: split by reason to change, enforce ownership and layering in CI, and manage breaking changes at HEAD.
13 min read
Tag
Learn how to size, own and evolve monorepo shared libraries: split by reason to change, enforce ownership and layering in CI, and manage breaking changes at HEAD.
13 min read
Learn how Nx models a React monorepo as a dependency graph: scaffold apps and libraries with generators, build shared UI, enforce boundaries, speed up CI.
13 min read
Learn how Nx module boundaries work, how to design tags and depConstraints, roll the lint rule into an existing workspace, and make it a blocking CI check.
14 min read
Learn how Nx Cloud extends Nx's local cache and task graph across machines, when remote caching and distributed task execution pay off, and when they don't.
13 min read
Learn where a monorepo moves engineering cost, when CI savings and refactoring ease outweigh tooling cost, and how to model the trade-off with your own numbers.
12 min read
Build per-service Docker images in a monorepo with a narrowed root context, pruned workspaces, layer ordering, cache mounts, multi-stage builds and CI caching.
13 min read
Migrate to an Nx monorepo step by step: nx init for caching, validated task pipelines, nx import with git history, affected CI, and module boundaries.
13 min read
Learn how Nx hashes task inputs, why cache misses and false hits happen, and how to fix them with named inputs, env inputs, and correct outputs.
15 min read
Learn to share API contracts across monorepo services using OpenAPI as the source of truth, generated types, and CI checks that catch breaking changes.
13 min read
Build backend services with Nx and NestJS: lay out apps and libs, share DTO contracts safely, enforce module boundaries, and use affected builds and caching.
13 min read
Learn how to keep monorepo CI fast with affected builds, correctly keyed caches, deliberate parallelism, and a full-build safety net against graph drift.
14 min read
Build a simple, explicit savings model for a monorepo build cache: measure task durations, estimate hit rate honestly, subtract overhead, and report a range.
13 min read