Add jquery-ui to vendor/BUILD.bazel
This commit is contained in:
parent
988d0df3e7
commit
a22d303e2f
8
qt/aqt/data/web/js/vendor/BUILD.bazel
vendored
8
qt/aqt/data/web/js/vendor/BUILD.bazel
vendored
@ -5,9 +5,17 @@ copy_jquery(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
load("//ts:jquery-ui.bzl", "copy_jquery_ui")
|
||||
|
||||
copy_jquery_ui(
|
||||
name = "jquery-ui",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
|
||||
files = [
|
||||
"jquery",
|
||||
"jquery-ui",
|
||||
]
|
||||
|
||||
directories = [
|
||||
|
@ -10,7 +10,7 @@ _unwanted_prefix = "external/npm/node_modules/jquery-ui-dist/"
|
||||
|
||||
def _copy_jquery_ui_impl(ctx):
|
||||
wanted = []
|
||||
for f in ctx.attr.jquery-ui.files.to_list():
|
||||
for f in ctx.attr.jquery_ui.files.to_list():
|
||||
path = f.path
|
||||
want = True
|
||||
|
||||
@ -24,6 +24,6 @@ def _copy_jquery_ui_impl(ctx):
|
||||
copy_jquery_ui = rule(
|
||||
implementation = _copy_jquery_ui_impl,
|
||||
attrs = {
|
||||
"jquery-ui": attr.label(default = "@npm//jquery-ui-dist:jquery-ui-dist__files"),
|
||||
"jquery_ui": attr.label(default = "@npm//jquery-ui-dist:jquery-ui-dist__files"),
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user