Bazel rules for Microsoft Batch.
In MODULE.bazel:
bazel_dep(name = "rules_batch", version = "...")load("@rules_batch//batch:bat_binary.bzl", "bat_binary")
load("@rules_batch//batch:bat_library.bzl", "bat_library")
bat_library(
name = "helpers",
srcs = ["helper.bat"],
)
bat_binary(
name = "tool",
srcs = ["main.bat"],
deps = [":helpers"],
)For more details see the docs at https://periareon.github.io/rules_batch/