Skip to content
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

feat(turbo): framework conditionals #9853

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tknickman
Copy link
Member

Description

Support framework conditional env vars

Testing Instructions

Copy link

vercel bot commented Jan 30, 2025

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

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:48pm

@@ -33,6 +48,27 @@ impl Framework {
pub fn env_wildcards(&self) -> &[String] {
&self.env_wildcards
}

pub fn resolved_env_conditionals(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor, but I think we should offer a single method here that combines env_wildcards and resolved_env_conditionals so the task hasher just makes one call. It's a lot easier to write tests on that framework methods than task hasher methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

@tknickman tknickman enabled auto-merge (squash) February 7, 2025 15:54
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.

3 participants