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(core): add support for wildcards in dependsOn #19611

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

fxposter
Copy link
Contributor

Now it is possible to define targets like this:

{
  "targets": {
    "build-css": {},
    "build-js": {},
    "test": {
      "dependsOn": ["build-*"]
    },
  }
}

Current Behavior

No support for wildcard target dependencies.

Expected Behavior

This PR is an example of what I described here: #19414.

Related Issue(s)

Closes #19414

@fxposter fxposter requested a review from a team as a code owner October 13, 2023 19:48
@fxposter fxposter requested a review from FrozenPandaz October 13, 2023 19:48
@vercel
Copy link

vercel bot commented Oct 13, 2023

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jul 3, 2024 9:20pm

@fxposter
Copy link
Contributor Author

@AgentEnder @FrozenPandaz guys, can you evaluate this idea, please?

@fxposter
Copy link
Contributor Author

@AgentEnder @FrozenPandaz guys?..

@fxposter
Copy link
Contributor Author

@FrozenPandaz @AgentEnder maybe now is the better time to look at it? It even passed all the tests :)

@AgentEnder AgentEnder requested a review from a team as a code owner June 13, 2024 16:53
@AgentEnder AgentEnder force-pushed the depends-on-wildcard branch 3 times, most recently from 6dfbcac to 25efd07 Compare June 17, 2024 16:51
@AgentEnder AgentEnder force-pushed the depends-on-wildcard branch from 25efd07 to b6874c0 Compare June 27, 2024 20:27
@AgentEnder AgentEnder requested a review from a team as a code owner June 27, 2024 20:27
@AgentEnder AgentEnder force-pushed the depends-on-wildcard branch from b6874c0 to 68cbe6c Compare July 2, 2024 14:17
Now it is possible to define targets like this:

```
{
  "targets": {
    "build-css": {},
    "build-js": {},
    "test": {
      "dependsOn": ["build-*"]
    },
  }
}
```
@AgentEnder AgentEnder force-pushed the depends-on-wildcard branch from f231a89 to 081155f Compare July 3, 2024 21:17
@AgentEnder AgentEnder requested a review from FrozenPandaz July 3, 2024 21:25
Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! LGTM 🎉

@FrozenPandaz FrozenPandaz merged commit 3e0d2de into nrwl:master Jul 8, 2024
6 checks passed
FrozenPandaz pushed a commit that referenced this pull request Jul 8, 2024
Now it is possible to define targets like this:

```
{
  "targets": {
    "build-css": {},
    "build-js": {},
    "test": {
      "dependsOn": ["build-*"]
    },
  }
}
```

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
No support for wildcard target dependencies.

## Expected Behavior
This PR is an example of what I described here:
#19414.

## Related Issue(s)
Closes #19414

---------

Co-authored-by: Craigory Coppola <[email protected]>
(cherry picked from commit 3e0d2de)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dependencyOf - the inverse of dependsOn
3 participants