Ability to run just the parts of the dependency graph which are ancestors to some project #23040
Nokel81
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
@Nokel81 What type of projects is your team developing? Trying to understand the use case here, as it sounds like you are rebuilding projects often, and this is a way to only rebuild what's affected? What would the before and after look like for your team with and without this feature? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background:
I have a decently complex project graph (>250 projects) so my team is very cognizant of the build times during development. One thing that I think would help a lot would be a smarter
nx run-many
which could be used in conjunction withnx watch
to do even less work.Proposal:
Add the flag
--inverted
torun-many
which inverts the graph and only runs the targets for the specified projects and those projects which depend on them.Example:
Given a rough project graph similar to:
Then if the package
"@my-scope/woot"
were to be changed then all packages get rebuilt, but if package"@my-scope/bar"
were to be changed only"@my-scope/bar"
and"@my-scope/foo"
would have their targets run (modulo caching)Beta Was this translation helpful? Give feedback.
All reactions