Turborepo 快速上手
Turborepo is an intelligent build system optimized for JavaScript and TypeScript codebases.
Your codebase's tasks - like lint
, build
and test
- don't run as fast as they could. Turborepo uses caching to turbocharge your local setup and speed up your CI.
Turborepo is designed to be incrementally adopted, so you can add it to most codebases in a few minutes.
Add to existing project
Add Turborepo to any JavaScript or TypeScript project in minutes.
Create a new monorepo
Build a brand-new monorepo with shared packages powered by Turborepo.
Add to existing monorepo
Incrementally add Turborepo to your existing monorepo codebase.
Features
Turborepo leverages advanced build system techniques to speed up development, both on your local machine and your CI/CD.
Never do the same work twice
Turborepo remembers the output of any task you run - and can skip work that's already been done.
Maximum Multitasking
The way you run your tasks is probably not optimized. Turborepo speeds them up with smart scheduling, minimising idle CPU's.
Monorepos
Turborepo works out-of-the-box with monorepo tools like npm
, pnpm
and yarn
. If you've ever felt that your monorepo slowed you down, it might be time for Turborepo.
Why Turborepo?
Understand why monorepos don't scale - and why Turborepo is the solution.
Read the Monorepo Handbook
Learn the basics of monorepos before you dive in to Turborepo.
Examples
You can also clone a Turborepo starter repository to get a head start on your monorepo. For even more examples and starters, see the Turborepo examples directory on GitHub.
Basic
Minimal Turborepo example for learning the fundamentals.
Design System
Unify your site's look and feel by sharing a design system across multiple apps.
With Tailwind CSS
Learn how to integrate with Tailwind, the popular CSS framework.
Kitchen Sink
Want to see a super-complex, kitchen-sink example? Includes multiple frameworks, both frontend and backend.