Granular target dependencies #14066
GeorgeTaveras1231
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been using nx for a few months and I've found myself wanting this feature multiple times.
Context
When defining targets with dependencies, nx assumes that a target depends on all of its dependencies
Example
package.json
nx.json
Proposal
Support granular target dependencies
Example
nx.json
Benefits
Deep dive (implicit target dependency)
Scenario
Lets say you have a shared testing utility (
cypress-test-util
) that needs to be built but is referenced by shared global fileIn each workspace you may reference this config from the root
Current state
For each workspace you may need to add an implicit dependency on
cypress-test-util
so that it is built beforetest.e2e
target is ran.There are 2 problems with this
cypress-test-util
to run -- the implicit dependency is only for the `test.e2eWith this proposal
With this proposal, you could define this implicit dependency on the
targetDefaults
Beta Was this translation helpful? Give feedback.
All reactions