Add jquery-ui to vendor/BUILD.bazel

This commit is contained in:
Henrik Giesel 2020-12-30 12:06:06 +01:00
parent 988d0df3e7
commit a22d303e2f
2 changed files with 10 additions and 2 deletions

View File

@ -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 = [

View File

@ -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"),
},
)