anki/qt/aqt/data/web/js/vendor/BUILD.bazel
Damien Elmes 5ec5a47708 merge separate vendor rules into single rule
Rather than creating a separate rule for each package, we can just
create a generic one and reuse it. Also switch to keyword arguments
in the resulting macros, as it's easier to read.
2021-01-02 11:14:00 +10:00

29 lines
658 B
Python

load("//ts:vendor.bzl", "copy_css_browser_selector", "copy_jquery", "copy_jquery_ui", "copy_protobufjs")
copy_jquery(name = "jquery")
copy_jquery_ui(name = "jquery-ui")
copy_protobufjs(name = "protobufjs")
copy_css_browser_selector(name = "css-browser-selector")
files = [
"jquery",
"jquery-ui",
"protobufjs",
"css-browser-selector",
]
directories = [
"mathjax",
]
filegroup(
name = "vendor",
srcs = glob(["*.js"]) +
["//qt/aqt/data/web/js/vendor:{}".format(file) for file in files] +
["//qt/aqt/data/web/js/vendor/{}".format(dir) for dir in directories],
visibility = ["//qt:__subpackages__"],
)