peridot/devtools/taskrunner2
2023-08-25 18:46:48 +02:00
..
BUILD addlicense 2023-08-22 18:14:15 +02:00
defs.bzl Add --dev-frontend-flags 2023-08-24 09:15:24 +02:00
main.go Make sure child processes are killed with taskrunner2 2023-08-25 18:46:48 +02:00
readme.md Add taskrunner2 readme 2023-08-24 09:22:20 +02:00
runner.sh addlicense 2023-08-22 18:14:15 +02:00

taskrunner2

Taskrunner2 is used to specify a list of Bazel targets to run.

Useful for development. Also supports running certain targets with ibazel.

Does NOT require you to have ibazel installed.

Macro

Services that want to use taskrunner2 in this repository should use the taskrunner2 macro.

Example:

load("//devtools/taskrunner2:defs.bzl", "taskrunner2")

taskrunner2(
    name = "mothership",
    dev_frontend_flags = True,
    targets = [
        "//devtools/devtemporal",
        "//devtools/devdex",
    ],
    watch_targets = [
        "//tools/mothership/cmd/mship_api",
        "//tools/mothership/ui",
    ],
)

Flags

name - Name of the taskrunner2 target
dev_frontend_flags - Whether to pass --dev_frontend_flags to taskrunner2. This is useful for running the frontend in dev mode and using the devdex instance.
targets - List of targets to run (bazel)
watch_targets - List of targets to watch for changes (ibazel)