scan

使用一个交互式命令,在本地为你的 Turborepo 启用更快的工具。

¥Enable faster tooling for your Turborepo locally with one, interactive command.

Terminal
turbo scan

你将完成一系列简短的步骤,以启用 Turborepo 的最快设置。这些优化包括:

¥You'll be taken through a short series of steps to enable the fastest settings for your Turborepo. These optimizations include:

  • Git 文件系统监控:turbo 依靠 Git 进行文件变更发现。由于我们必须等待 git 告知我们更改,因此可以使用 Git 的内置文件系统监视器 更快地获取这些通知。

    ¥Git FS Monitor: turbo leans on Git to do file change discovery. Since we have to wait for git to tell us about changes, we can use Git's built-in filesystem monitor to get those notifications sooner.

  • Turborepo 守护进程:Turborepo 的守护进程会在后台乐观地理解你的存储库。通过预先完成 turbo 在运行任务时需要做的共享、通用工作,turbo 将更快地运行你的任务。

    ¥Turborepo Daemon: Turborepo's daemon optimistically understands your repository in the background. By doing shared, common work that turbo will need to do when running tasks beforehand, turbo will run your tasks faster.

  • 远程缓存:Turborepo 不仅可以在本地缓存你的工作,还可以在所有机器上共享缓存。启用 远程缓存 可使你的缓存功能多人协作,确保你、你的队友以及你的 CI 机器不会重复执行相同的工作。

    ¥Remote Caching: While Turborepo can cache your work locally, it can also share a cache across all of your machines. Enabling Remote Caching makes your caching multiplayer, ensuring that you, your teammates, and your CI machines, never do the same work twice.

  • 检查 turbo 版本:我们一直在努力改进 turbo。为确保你使用的是最新版本的 Turborepo,我们将检查你的版本,如果你尚未使用 latest,请提醒你安装。

    ¥Check turbo version: We're always working towards making turbo better. To ensure you are using the latest version of Turborepo, we'll check your version and remind you to install latest if you aren't using it yet.

  • 检查 Turborepo LSP:访问 VSCode 扩展市场 并为你的 IDE 安装 Turborepo LSP 扩展。

    ¥Check for Turborepo LSP: Visit the VSCode Extension Marketplace and install the Turborepo LSP extension for your IDE.