illustration for Migrate a Monorepo from NPM Workspaces to Turborepo
pro

Migrate a Monorepo from NPM Workspaces to Turborepo

44m closed-captioning
·
14 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
76
people completed
Published 2 years ago
|
Updated 2 years ago

Monorepos are an amazing way to collaborate on a multitude of projects with other team members. The ability to share code seamlessly between projects and have a single source of truth is paramount when working on projects with multiple moving wheels.

One of the tradeoffs of a Monorepo is all of the management you have to do to make your projects run flawlessly and simultaneously. Each project has it’s own linting, building, testing, and deploying that it runs whenever code in that project changes.

This becomes a real problem when each of your projects lints, builds, tests, and deploys on every PR into your monorepo. You might be fine with a handful of projects but as your applications scale and you accrue more projects, you will need a way to scale.

Turborepo is the tool that solves your monorepo’s needs.

Turborepo is a task runner for Monorepos. Turborepo caches the results of your CI tasks, schedules those tasks to run at maximum speed, and only runs tasks on the affected code in your PRs. And because of remote caching, your coworkers, wherever they are, will have the most up-to-date code possible.

One of the greatest things about it is that it's easy to use and can be incrementally adopted. Turborepo is a thin layer on top of your Monorepo.

Turborepo doesn't get in the way as it is only a task runner. You don't have to modify your application code or anything to make it work.

You’ll learn about

  • How to set up caching for both local and remote
  • CLI-commands and how they enhance your Monorepo
  • Parallel execution of your tasks

So hop in and learn about Turborepo today!

Prerequisite: This course is a continuation of Introduction to Monorepos with NPM Workspaces. To get the most out of this course, watch Monorepos with NPM Workspaces first.

Course Content

44m • 14 lessons

    You might also like these resources:

    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.

    illustration for Architect an Extensible Digital Garden with Next.js, Tailwind, and Nx
    Juri Strumpflohner • 2h 1m • Course

    In this course, Juri Strumpflohner demonstrates how to create a Digital Garden through the iterative creation of a React + Storybook.