Does Task have an equivalent to make's double-colon rules?
See https://www.gnu.org/software/make/manual/html_node/Double_002dColon.html
Tl;DR double-colon rules let you define a target with multiple different recipes that all run when you make that target. It's very useful if you're building re-usable makefiles for multi-language projects. You can create a JS makefile with a
test::
target, and a Go makefile with a test::
target, include them both, and running make test
will run both sets of tests.
The key feature is that you don't have to manually specify a parent target to pull everything together like test: test-js test-go
- double-colon targets are just "extensible" without extra configuration.
Perhaps the same kind of thing could be achieved by adding a tag system to Taskfiles in combination with a way to run all tasks with a given tag?1 Reply
The way to accomplish something similar today would be to run
task --parallel test:go test:js
or have a task like this:
I don't think we have a way to run automatically, but feel free to open an issue with this idea so we can eventually explore.