mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00

I mourn the time lost trying to track this down :-( https://github.com/protobufjs/protobuf.js/issues/1014 We can't patch the minified file in dist without essentially duplicating it, so this change also switches from the external file to including the src file as part of the bundle.
34 lines
683 B
Text
34 lines
683 B
Text
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__"],
|
|
)
|