illustration for Build High-Speed Monorepos with Nx and pnpm Workspaces
pro

Build High-Speed Monorepos with Nx and pnpm Workspaces

42m closed-captioning
·
18 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.5
158
people completed
Published 3 years ago
|
Updated 2 years ago

In a monorepo, all of your apps and packages reside in a single repo. Structuring your code this way has many organizational benefits. You can more easily manage your dependencies, and you can maintain more consistency across your various apps.

But, if you attempted to do this with just yarn or pnpm alone, you'll quickly start running into productivity issues. Your build times will be very long, and you'll have to make sure to run builds for any internal packages an app is depending on.

That's where Nx comes in.

Combining the speed of pnpm with the efficiency of Nx gives you an amazingly performant monorepo setup.

Nx builds a graph of your workspace and all of the connected dependencies. If there is a change anywhere, Nx will know about it and everything that is affected by it.

Which means that Nx is able to use caching to prevent unnecessary builds when nothing has changed. Nx's caching features enable blazing fast <10ms build times 🔥

You get to have all the advantages of the monorepo with none of the performance issues!

So start watching this course and learn how to achieve these speeds today.

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Covers all the basics in a simple way. The demos mix between using "npx" and "pnpx" without explanation. It would be nice to update the materials with information about "pnpm dlx" and "pnpm exec". Thanks for the great course!

    Domagoj Štrekelj
    2 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    How it used nx on top of pnpm and not nx right out of the box. That gives me much more flexibility in my upcoming projects in regards to integration.

    Tobias Meyer
    2 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great course! Can you please fix the my-remix-app/app/routes/index.tsx file? console.log(message: 'clicked' because console.log does not accept json object as parameter

    Learner
    2 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    A great class to learn some more advanced tooling for monorepos

    Chad Elofson
    2 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    The course has the required steps to start your first real project with nx and pnpm.

    Dimitar Danailov
    2 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Clear, focused and useful! Everything I love about Egghead.

    Matt
    2 years ago

Course Content

42m • 18 lessons

    You might also like these resources:

    illustration for Migrate a Monorepo from NPM Workspaces to Turborepo
    Alejandro Ñáñez • Course • 44m

    Monorepos is an amazing way to collaborate on a multitude of projects with other developers and Turborepo will help you manage that!

    illustration for Introduction to Monorepos with NPM Workspaces
    Alejandro Ñáñez • Course • 24m

    Monorepos smooth out the rough edges when managing all of your projects.

    illustration for Scale React Development with Nx
    Juri Strumpflohner • 1h 40m • Course

    Juri demonstrates Nx features and more through the iterative creation of a React + Storybook + Express app. Nx supports the most popular frameworks & libraries on the web.