1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-19 12:34:32 +08:00

ci: remove external BUILD code that should not be internal

This commit is contained in:
Hans 2018-09-17 12:03:39 -07:00
parent af96ccfb65
commit 3127fed50a
2 changed files with 9 additions and 4 deletions

@ -2,7 +2,7 @@
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.io/license
# @external_begin
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
@ -21,4 +21,4 @@ nodejs_binary(
],
install_source_map_support = False,
)
# @external_end

@ -4,9 +4,8 @@
# found in the LICENSE file at https://angular.io/license
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_test", "nodejs_binary")
# @external_begin
def _ts_json_schema_interface_impl(ctx):
args = [
ctx.files.src[0].path,
@ -50,6 +49,7 @@ _ts_json_schema_interface = rule(
"ts": "%{out}"
},
)
# @external_end
# Generates a library that contains the interface for a JSON Schema file. Takes a single `src`
@ -60,16 +60,21 @@ _ts_json_schema_interface = rule(
def ts_json_schema(name, src, data = []):
out = src.replace(".json", ".ts")
# @external_begin
_ts_json_schema_interface(
name = name + ".interface",
src = src,
out = out,
data = data,
)
# @external_end
ts_library(
name = name,
# Remove these to empty the rule, since those files are also compiled elsewhere.
# @external_begin
srcs = [
out,
]
# @external_end
)