Dynamically change task pipeline as a result of tasks output #27663
rezoled
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
-
Currently NX calculates the task pipeline statically from the dependency graph when running a specific command.
It would be awesome if there were some capability for the task pipeline to delete a pipeline branch if it discovers unchaged files during the pipeline process.
Example -
Let's say I have this project:
apps/frontend
apps/backend
apps/sdk
And these are the dependencies:
frontend depends on sdk
sdk depends on backend
(frontend --> sdk --> backend)
Running build task on the sdk project will generate files automatically from a schema definition in the backend project.
So now, changing any files in backend and running build all will result in a build of all 3 projects.
What I would like to have supported is that only if the sdk project was changed as a result of the build task of backend, the frontend project should be build.
Example:
I create a new endpoint in the backend project and run build all:
backend build (files changed) --> sdk build (dependency changed, results in a new file in sdk) --> frontend build (dependency changed)
I modify code that does not change the backend schema (add console log):
backend build (files changed) --> sdk build (dependency changed, no files were changed in sdk) --> frontend is not build
Beta Was this translation helpful? Give feedback.
All reactions