A curated collection of Turborepo examples and templates to help you kickstart your monorepo journey with best practices.
Turborepo is a high-performance build system for JavaScript and TypeScript monorepos. It is designed to make your development workflow faster by:
- Remote Caching: Never compute the same task twice. If you or a teammate have already built a package, Turborepo will restore the cached output.
- Parallel Execution: Executes tasks in parallel across your entire monorepo, utilizing all available CPU cores.
- Pipeline Configuration: Define task dependencies so that tasks run in the correct order.
For more information, visit the official Turborepo GitHub repository.
One of the best features of Turborepo is the ability to bootstrap a new project directly from a GitHub folder. You can use the create-turbo CLI to clone any example from this repository.
To start a new project based on an example in this repo, run:
pnpm dlx create-turbo@latest --example https://github.com/viczem/turborepo-examples/tree/main/<example-name>Replace <example-name> with the name of the example directory (e.g., with-nestjs).
- Browse the root of this repository to find a template that fits your needs (folders starting with
with-). - Copy the folder name.
- Run the command above with that folder name.
- Follow the prompts to name your new project.
Contributions are welcome! If you have a specific Turborepo configuration that solves a common problem (e.g., combining Next.js, NestJS, and shared libraries), feel free to open a Pull Request.
This project is licensed under the MIT License.