load(
    "//ts:vendor.bzl",
    "copy_bootstrap_js",
    "copy_css_browser_selector",
    "copy_jquery",
    "copy_jquery_ui",
)

copy_jquery(name = "jquery")

copy_jquery_ui(name = "jquery-ui")

copy_css_browser_selector(name = "css-browser-selector")

copy_bootstrap_js(name = "bootstrap")

files = [
    "jquery",
    "jquery-ui",
    "css-browser-selector",
    "bootstrap",
]

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__"],
)
