https://github.com/angular/angular
Raw File
Tip revision: 0b429d314f02d07c3eb6b06074ac958a4a4e3cfa authored by Andrew Kushnir on 14 July 2021, 17:59:59 UTC
release: cut the v12.2.0-next.2 release (#42858)
Tip revision: 0b429d3
BUILD.bazel
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")

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

ts_library(
    name = "lib",
    testonly = True,
    srcs = glob(
        ["**/*.ts"],
        exclude = [
            "**/*_spec.ts",
            "**/*_spec",
        ],
    ),
    deps = [
        "//packages:types",
        "@npm//@bazel/runfiles",
        "@npm//typescript",
    ],
)

ts_library(
    name = "test_lib",
    testonly = 1,
    srcs = glob(
        ["**/*_spec.ts"],
        exclude = ["symbol_extractor_spec/**"],
    ),
    deps = [
        ":lib",
        "//packages:types",
        "@npm//typescript",
    ],
)

jasmine_node_test(
    name = "test",
    data = glob(["symbol_extractor_spec/**"]),
    deps = [
        ":test_lib",
        "//tools/symbol-extractor/symbol_extractor_spec:es2015_class_output",
        "//tools/symbol-extractor/symbol_extractor_spec:fixtures",
    ],
)
back to top