Upgrade Nomulus to latest Closure Rules

Significant technical debt has been eliminated. The latest best
practices are also now adopted for dealing with runfiles and dealing
with files across repositories.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140762937
This commit is contained in:
jart 2016-12-01 12:33:53 -08:00 committed by Ben McIlwain
parent 79a72387ee
commit 59f4984083
28 changed files with 193 additions and 361 deletions

View file

@ -6,17 +6,15 @@ licenses(["notice"]) # Apache 2.0
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
filegroup(
name = "js_files",
srcs = glob(["*.js"]),
)
closure_js_library(
name = "js",
srcs = [":js_files"],
srcs = glob(["*.js"]),
suppress = [
"JSC_UNKNOWN_EXPR_TYPE",
"JSC_IMPLICITLY_NULLABLE_JSDOC",
],
deps = [
"//java/google/registry/ui/soy:Console",
"//java/google/registry/ui/soy:Forms",
"//javascript/closure",
"//java/google/registry/ui/soy",
"@io_bazel_rules_closure//closure/library",
],
)

View file

@ -6,29 +6,17 @@ licenses(["notice"]) # Apache 2.0
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
filegroup(
name = "js_files",
srcs = glob(["*.js"]),
)
closure_js_library(
name = "registrar",
srcs = [":js_files"],
srcs = glob(["*.js"]),
suppress = [
"JSC_UNKNOWN_EXPR_TYPE",
"JSC_IMPLICITLY_NULLABLE_JSDOC",
],
deps = [
"//java/google/registry/ui/js",
"//java/google/registry/ui/soy:Forms",
"//java/google/registry/ui/soy/registrar:Console",
"//java/google/registry/ui/soy/registrar:Contact",
"//java/google/registry/ui/soy/registrar:ContactEpp",
"//java/google/registry/ui/soy/registrar:ContactSettings",
"//java/google/registry/ui/soy/registrar:Domain",
"//java/google/registry/ui/soy/registrar:DomainEpp",
"//java/google/registry/ui/soy/registrar:Epp",
"//java/google/registry/ui/soy/registrar:Host",
"//java/google/registry/ui/soy/registrar:HostEpp",
"//java/google/registry/ui/soy/registrar:Payment",
"//java/google/registry/ui/soy/registrar:SecuritySettings",
"//java/google/registry/ui/soy/registrar:WhoisSettings",
"//javascript/closure",
"//java/google/registry/ui/soy",
"//java/google/registry/ui/soy/registrar",
"@io_bazel_rules_closure//closure/library",
],
)