guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

Multiple target builds #13

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

If there are multiple ways to build the same target, rather than throwing we can instead handle validation as any of the build paths being valid.

Then when invalidated, the closest build path (the one with the least work) can be used.

This effectively enables a sort of mini conditional build approach without needing a predicate system just yet.

guybedford commented 2 years ago

This is pretty complex, closing for now.

canadaduane commented 2 years ago

Would it make sense to have a simple "sort order" for now? You could add an optional "order" or "precedence" field with a numeric value. Highest number wins?

guybedford commented 2 years ago

Good point, I've posted a separate issue at https://github.com/guybedford/chomp/issues/28 to make sure we clarify this.