Monorepo (Nx) Configuration for Large Web Projects

Imagine you have 10 applications (Next.js, React, Vue) and 40 TypeScript libraries. After every push, CI takes 40 minutes, even though only one component changed. Sound familiar? We've encountered this dozens of times, so we configure Nx—a system that builds a dependency graph and runs only what's n

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1281
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1237
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    977
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1026
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1103
  • image_website-_0.webp
    Website development for Red Pear
    550

Imagine you have 10 applications (Next.js, React, Vue) and 40 TypeScript libraries. After every push, CI takes 40 minutes, even though only one component changed. Sound familiar? We've encountered this dozens of times, so we configure Nx—a system that builds a dependency graph and runs only what's necessary. Learn more about the dependency graph at nx.dev. With over 7 years of experience in monorepo architecture, we guarantee that after configuration, waiting for builds will be a thing of the past. Order Nx configuration, and we'll tailor it to your stack. This Nx monorepo configuration includes Nx code generators, modular architecture enforcement, Nx Cloud CI integration, and workspace setup for Vite Nx, Next.js Nx, and NestJS Nx.

How Nx Solves Problems for Large Teams

Unlike Turborepo, which simply runs scripts, Nx builds a file-level dependency graph. If you change packages/ui/src/Button.tsx, Nx checks which applications use it and runs only their tests and builds. No manual scripts needed—it all works via affected:test and affected:build.

But the real value is architectural control. Using tags (e.g., scope:web, type:util) and the enforce-module-boundaries rule, you can forbid imports from apps/api to apps/web at the linter level. Violations appear red directly in the IDE. This is critical as the team grows and newcomers start pulling server utilities into the frontend. We implement such constraints in every project—it's the foundation of modular architecture. Additionally, Nx leverages incremental builds, computation caching with high cache hit ratio, and distributed task execution (DTE) to orchestrate tasks efficiently.

Why Nx Is Better Than Turborepo for Complex Projects

Turborepo is a great choice for small projects with a single stack. But when you have 5+ applications built on different frameworks, Nx wins. It provides ready-made plugins: @nx/next configures caching for Next.js, @nx/vite for Vite, @nx/nest for NestJS. No need to manually specify inputs and outputs. Nx code generators create components, tests, and Storybook stories from a unified template—standardizing development and speeding up onboarding.

Characteristic Turborepo Nx
Type Task runner with cache Build system with dependency graph
Framework-aware No Yes (plugins)
Code generators No Yes (custom + built-in)
Architectural constraints No Tags and enforce-module-boundaries
Distributed CI No (cache only) Nx Cloud (DTE)
Best for 1-3 apps, one stack 5+ apps, multiple stacks

Common Problems and Solutions

Problem Solution with Nx
Slow CI builds Use affected commands + Nx Cloud for distributed execution
Chaotic inter-module dependencies Apply tags and enforce-module-boundaries in ESLint
Inconsistent app configurations Unified config via project.json and plugins
Slow onboarding Code generators create standardized structure

How We Configure Nx: The Process

  1. Analysis: We study your code structure, current configs (webpack, vite, tsconfig). Collect metrics—number of modules, app types, dependencies.
  2. Design: Define tags for modules, dependency rules, configure nx.json. Create an architectural diagram.
  3. Implementation: Create the workspace, move projects into apps and packages, connect plugins. Set up generators for new features.
  4. Generators: Write custom generators (e.g., nx generate @myorg/feature:component) for standardization.
  5. CI/CD: Configure affected commands in GitHub Actions/GitLab CI, connect Nx Cloud if needed. CI runs in 5-15 minutes instead of 40.
  6. Testing: Verify that linting, tests, and builds work with nx affected. Add e2e tests for key scenarios.
  7. Deployment: Give the go-ahead for the merge request. Developer time savings of up to 80%.

Each stage is documented: you receive not just a configured repository, but a guide on how to work with it. We also train your team (2-hour session). Once we migrated a project with 12 applications in 8 days: CI dropped from 45 to 9 minutes—the team saved over 100 hours per month.

Deliverables

  • Configured Nx workspace with nx.json, project.json for each project.
  • Plugins for all frameworks in use (Next.js, React, Vue, Angular, NestJS, etc.).
  • Generator for creating new features (component template + test + story).
  • Typed tags and the enforce-module-boundaries rule.
  • CI integration: via Nx Cloud or standalone cache.
  • Documentation: how to run tests, builds, deployments.
  • Team training: a 1-2 hour session on working with Nx.

This is more than just npx nx generate—we set standards that last for years. We guarantee support for one month after delivery. Get a consultation on Nx configuration—contact us today.

Timelines and Cost Estimates

A fresh setup for 6-10 projects takes 3-5 days. Migrating an existing monorepo from Turborepo or Lerna takes 1-2 weeks depending on custom configs. Setup costs typically range from $3,000 to $7,000, and clients often save $5,000–$10,000 per month in CI costs after migration. Pricing is determined individually—reach out for a project assessment.

Once we migrated a project with 12 applications in 8 days: CI dropped from 45 to 9 minutes, saving the team over 100 hours per month. Order configuration to achieve similar results.

More about CI configuration with Nx Cloud

Nx Cloud distributes task execution across multiple CI agents, reducing build time by up to 60%. Simply add a token to your CI settings and specify the number of parallel agents. We help set up integration with GitHub Actions, GitLab CI, or Jenkins in one day.