vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo
MIT License
26.46k stars 1.84k forks source link

feat: sibling tasks #9504

Closed chris-olszewski closed 10 hours ago

chris-olszewski commented 3 days ago

Description

This PR does 2 things:

A sibling relationship acts similar to dependsOn except that it will not wait for the task to exit before starting and the sibling's task hash will not affect the current task's hash.

Currently it's very hard to get web#proxy to run if the user runs a command like turbo dev --filter=docs as just adding web to the filter will mean web#dev gets picked up which isn't what we desire. As you can see in run/builder.rs this also removes the need of microfrontend knowledge from building the task graph.

Testing Instructions

Added unit tests for sibling behavior as well as unit tests for MFE task injection.

Manual testing for the MFE behavior to make sure proxy still gets picked up.

vercel[bot] commented 3 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 4:29pm
8 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **examples-basic-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-basic-web/9yT6bxpbYZaBsAy6DAzAkPnPMyrL)) | [Visit Preview](https://examples-basic-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-designsystem-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-designsystem-docs/A5nQUnVQ3oNUoPrkwLfohsVrtzJM)) | [Visit Preview](https://examples-designsystem-docs-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-gatsby-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-gatsby-web/BrFLLynXFrSNWk7B1eZobNMoJLPJ)) | [Visit Preview](https://examples-gatsby-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-kitchensink-blog** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-kitchensink-blog/CRUnw5tznH6rrhHRKBMtYxuhiDBv)) | [Visit Preview](https://examples-kitchensink-blog-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-native-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-native-web/3FBjS2Tyrupex9q7A5NE5FWsmjQ6)) | [Visit Preview](https://examples-native-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-svelte-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-svelte-web/2cyomq5roNfFep2TbezhgrtcnrYV)) | [Visit Preview](https://examples-svelte-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-tailwind-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-tailwind-web/GjkrQMktuoc9zMghUFJkrWEAeg74)) | [Visit Preview](https://examples-tailwind-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm | | **examples-vite-web** | ⬜️ Ignored ([Inspect](https://vercel.com/vercel/examples-vite-web/GBQ5eNHNGR8xWTVUgKdjV9xiu16y)) | [Visit Preview](https://examples-vite-web-git-olszewski-featsiblingtasks.vercel.sh) | | Nov 25, 2024 4:29pm |