Skip to content

ci: use Turborepo for caching to speed up build scripts #4926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

serkodev
Copy link
Contributor

@serkodev serkodev commented Jul 30, 2025

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

Note

Previously, when debugging the twoslash build process (PR #4560), each build took a long time. To speed things up, Turborepo was temporarily added at the time.

Since it’s already set up, I’m thinking of sharing it to gather some feedback.

Description

Turborepo can cache build results, so it only rebuilds a package when there are updates, saving a significant amount of time.

Scripts with caching enabled:

  • build
  • docs:build
  • update (for @vueuse/metadata)
  • watch

Copy link

pkg-pr-new bot commented Jul 30, 2025

Open in StackBlitz

@vueuse/components

npm i https://pkg.pr.new/@vueuse/components@4926

@vueuse/core

npm i https://pkg.pr.new/@vueuse/core@4926

@vueuse/electron

npm i https://pkg.pr.new/@vueuse/electron@4926

@vueuse/firebase

npm i https://pkg.pr.new/@vueuse/firebase@4926

@vueuse/integrations

npm i https://pkg.pr.new/@vueuse/integrations@4926

@vueuse/math

npm i https://pkg.pr.new/@vueuse/math@4926

@vueuse/metadata

npm i https://pkg.pr.new/@vueuse/metadata@4926

@vueuse/nuxt

npm i https://pkg.pr.new/@vueuse/nuxt@4926

@vueuse/router

npm i https://pkg.pr.new/@vueuse/router@4926

@vueuse/rxjs

npm i https://pkg.pr.new/@vueuse/rxjs@4926

@vueuse/shared

npm i https://pkg.pr.new/@vueuse/shared@4926

commit: d80ae46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant