Back to articles
Getting Started with Monorepos - Vite, React and Shadcn

Getting Started with Monorepos - Vite, React and Shadcn

via Dev.toFrancisco Luna

I've been working on professional codebases for over 3 years and there's a pattern I find often. The monorepository (monorepo). This pattern is frequently used in TypeScript codebases because it allows you to create shared types and utilities for all your projects. But how do you deploy your projects and keep the monorepo maintainable? Using tools like pnpm workspaces and Turborepo. Introducing Turborepo Turborepo is a build system for TypeScript codebases used with pnpm workspaces to scale and manage monorepos. Its main benefit is the Remote Cache, meaning that your CI pipeline does not repeat tasks; saving computing hours and money as the codebase grows. It also allows you to perform tasks scheduling easier, allowing you to lint, build and test each project separately. Reasons to use a Monorepo You might be wondering something similar to this: "Cannot I just build everything with Next.js?" For most small projects, that's a valid choice. But what if: Your team does not want to use Ver

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles