November 22, 2024

Monorepo with Turbo

Facebook share button
X share button
LinkedIn share button
Threads share button
Turborepo logo

In this blogpost we describe what Turborepo and monorepo is and how we use it in our development strategy so we we can build faster, scale and take benefits of having many projects inside of one repo.

What is a monorepo?

In a version control system, a monorepo(mono means single and repo means repository) is a software-development strategy to have a number of different projects stored in one repository. All components, modules, and features are part of a single code base and run within a single process.

What is a Turborepo?

Turborepo is a high-performance build system for JavaScript and TypeScript codebases. It is designed for scaling monorepos and also makes workflows in single-package workspaces faster, too.

From individual developers to the largest enterprise engineering organizations in the world, Turborepo is saving years of engineering time and millions of dollars in compute costs through a lightweight approach to optimizing the tasks you need to run in your repository.

Why use Turborepo?

  • Efficiency in large codebases: It's particularly useful for monorepos where multiple applications or libraries share dependencies and configurations.

  • Collaboration: Helps teams work faster by reducing redundant work and improving build consistency.

  • Scalability: Handles complex dependency graphs and large-scale build processes with ease.

Typically use cases

  • Large projects with shared code, like design systems or component libraries.

  • Companies or teams that prefer monorepos for easier dependency management.

  • Continuous integration/continuous deployment (CI/CD) pipelines that benefit from faster build and test runs.

How Throwbacks use it?

We create a lot of different Typescript codebases. Like a repo for the website, for the CMS, admin page and the blog. If we can collect of all them in the same repo with ease, it will save a lot of time. So we use Turborepo to speed up the development and let the colloboration with our teams be more efficient.

It will suit us today and in the future πŸš€

Curious and wanna learn more, visit the website here.

Thank you for reading πŸ“š

Best regards
Throwbacks team