Skip to content

Commit

Permalink
Move Incremental DOM build target
Browse files Browse the repository at this point in the history
Old location: //closure/templates:incremental_dom
New location: //third_party/javascript/incremental_dom
  • Loading branch information
jart committed Sep 6, 2016
1 parent 9d9fe3b commit 1ddf26e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
6 changes: 0 additions & 6 deletions closure/templates/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,3 @@ java_binary(
"@args4j//jar",
],
)

closure_js_library(
name = "incremental_dom",
srcs = ["//third_party/incremental_dom"],
language = "ECMASCRIPT6_STRICT",
)
2 changes: 1 addition & 1 deletion closure/templates/closure_js_template_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def closure_js_template_library(
deps = deps + [str(Label("//closure/library")),
str(Label("//closure/templates:soy_jssrc"))]
if incremental_dom:
deps = deps + [str(Label("//closure/templates:incremental_dom"))]
deps = deps + [str(Label("//third_party/javascript/incremental_dom"))]

closure_js_library(
name = name,
Expand Down
4 changes: 2 additions & 2 deletions closure/templates/test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ closure_js_library(
deps = [
":greeter_idom_soy",
"//closure/library",
"//closure/templates:incremental_dom",
"//third_party/javascript/incremental_dom",
],
)

Expand All @@ -90,7 +90,7 @@ closure_js_library(
":greeter_idom_proto_soy",
":person_proto",
"//closure/library",
"//closure/templates:incremental_dom",
"//third_party/javascript/incremental_dom",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache License Version 2.0

sh_binary(
name = "build",
srcs = ["build.sh"],
load("//closure:defs.bzl", "closure_js_library")

closure_js_library(
name = "incremental_dom",
srcs = ["incremental-dom-closure.js"],
language = "ECMASCRIPT6_STRICT",
visibility = ["//visibility:public"],
)

genrule(
name = "incremental_dom",
name = "extract",
srcs = ["@incremental_dom//file"],
outs = ["incremental-dom-closure.js"],
cmd = " && ".join([
Expand All @@ -34,5 +36,10 @@ genrule(
"$$SCRIPT $$IN $$OUT",
"rm -rf $$TMP",
]),
tools = [ ":build" ],
tools = [":build"],
)

sh_binary(
name = "build",
srcs = ["build.sh"],
)
File renamed without changes.

0 comments on commit 1ddf26e

Please sign in to comment.