mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
ci: remove external BUILD code that should not be internal
This commit is contained in:
parent
af96ccfb65
commit
3127fed50a
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Use of this source code is governed by an MIT-style license that can be
|
# 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
|
# found in the LICENSE file at https://angular.io/license
|
||||||
|
# @external_begin
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
||||||
@ -21,4 +21,4 @@ nodejs_binary(
|
|||||||
],
|
],
|
||||||
install_source_map_support = False,
|
install_source_map_support = False,
|
||||||
)
|
)
|
||||||
|
# @external_end
|
||||||
|
@ -4,9 +4,8 @@
|
|||||||
# found in the LICENSE file at https://angular.io/license
|
# found in the LICENSE file at https://angular.io/license
|
||||||
|
|
||||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
|
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):
|
def _ts_json_schema_interface_impl(ctx):
|
||||||
args = [
|
args = [
|
||||||
ctx.files.src[0].path,
|
ctx.files.src[0].path,
|
||||||
@ -50,6 +49,7 @@ _ts_json_schema_interface = rule(
|
|||||||
"ts": "%{out}"
|
"ts": "%{out}"
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
# @external_end
|
||||||
|
|
||||||
|
|
||||||
# Generates a library that contains the interface for a JSON Schema file. Takes a single `src`
|
# 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 = []):
|
def ts_json_schema(name, src, data = []):
|
||||||
out = src.replace(".json", ".ts")
|
out = src.replace(".json", ".ts")
|
||||||
|
|
||||||
|
# @external_begin
|
||||||
_ts_json_schema_interface(
|
_ts_json_schema_interface(
|
||||||
name = name + ".interface",
|
name = name + ".interface",
|
||||||
src = src,
|
src = src,
|
||||||
out = out,
|
out = out,
|
||||||
data = data,
|
data = data,
|
||||||
)
|
)
|
||||||
|
# @external_end
|
||||||
|
|
||||||
ts_library(
|
ts_library(
|
||||||
name = name,
|
name = name,
|
||||||
|
# Remove these to empty the rule, since those files are also compiled elsewhere.
|
||||||
|
# @external_begin
|
||||||
srcs = [
|
srcs = [
|
||||||
out,
|
out,
|
||||||
]
|
]
|
||||||
|
# @external_end
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user