Skip to content

Commit

Permalink
[bazel]: build javascript/deps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Nov 25, 2018
1 parent 0364f1c commit 46850d2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ java_library(
"webserver/keystore",
"//common/src/web",
"//javascript",
"@io_bazel_rules_closure//closure/library",
"//javascript:deps.js",
] + glob(["webserver/*.java"]),
visibility = [
"//java/client/test:__subpackages__",
Expand Down
20 changes: 19 additions & 1 deletion javascript/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
load(
"@io_bazel_rules_closure//closure:defs.bzl",
"closure_js_deps",
)

filegroup(
name = "javascript",
data = glob([
"**/*.*",
]),
]) + [
":deps.js",
],
visibility = [
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
)

closure_js_deps(
name = "deps",
deps = [
"//javascript/atoms",
"//javascript/webdriver",
],
visibility = [
"//java/client/test/org/openqa/selenium/environment:__pkg__",
],
Expand Down
8 changes: 1 addition & 7 deletions javascript/atoms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ load(
)
load("//javascript:bazel-rules.bzl", "selenium_js_fragment")

closure_js_deps(
name = "deps",
deps = [
":everything",
],
)

closure_js_library(
name = "atoms",
srcs = glob(["**/*.js"], exclude = ["test/**"]),
Expand All @@ -25,6 +18,7 @@ closure_js_library(
"//third_party/js/wgxpath:wgxpath",
],
visibility = [
"//javascript:__pkg__",
"//javascript/webdriver:__subpackages__",
],
)
Expand Down
2 changes: 1 addition & 1 deletion javascript/webdriver/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load(
"@io_bazel_rules_closure//closure:defs.bzl",
"closure_js_deps",
"closure_js_library",
)

Expand All @@ -12,6 +11,7 @@ closure_js_library(
"@io_bazel_rules_closure//closure/library",
],
visibility = [
"//javascript:__pkg__",
"//javascript/webdriver/atoms:__pkg__",
]
)
2 changes: 1 addition & 1 deletion javascript/webdriver/atoms/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ selenium_js_fragment(
visibility = [
"//java/client/src/org/openqa/selenium/remote:__pkg__",
],
)
)

0 comments on commit 46850d2

Please sign in to comment.