Enterprise Monorepo Angular Patterns
by the Nx Core Team - updated for 2025!

What's in this book?
We focus on concrete Angular development problems and how to effectively use the Nx set of power-ups to solve them.
- Learn about the tools (such as Nx) now available.
- Define strategies to organize your code into small single-purpose libs that can be composed to make large applications.
- Enforce consistency across the code base with schematics that can be defined for all common tasks, restricting imports of libs to avoid common pitfalls, and more.
- We cover Nx tools that analyze the workspace to determine the set of files that are actually affected by code changes so that we can target only these files during the build for linting, testing, and building.
About Nx
Nx is a smart, fast, and extensible open source build system with first class monorepo support and powerful integrations. It was created and is maintained by a growing team of software development experts with extensive experience helping startups and Fortune 500’s alike build better software through better developer experience and smarter devops.
Book Excerpt
On the surface, both large and small organizations care about the same things: consistency, writing robust and maintainable code, and making changes with confidence.
What's different about large organizations is that they have hundreds of engineers building dozens of apps. There is a lot of code, and this changes everything.
While ten developers can reach a consensus on best practices by chatting over lunch, five hundred developers cannot. You have to establish best practices, team standards, and use tools to promote them.With three projects developers know what needs retesting after making a change; however, with thirty projects this is no longer a simple process. Informal team rules to manage change no longer work with large teams and multi-team, multi-project efforts. You have to rely on automated CI process instead.