https://github.com/angular/angular
Raw File
Tip revision: e2e0f08d99c06fe6e5d8758562e085a133854d0b authored by Pawel Kozlowski on 24 January 2024, 18:28:10 UTC
release: cut the v17.1.1 release
Tip revision: e2e0f08
BUILD.bazel
load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_module", "ng_package")

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

ng_module(
    name = "animations",
    srcs = glob(
        [
            "*.ts",
            "src/**/*.ts",
        ],
    ),
    deps = [
        "//packages/common",
        "//packages/core",
    ],
)

ng_package(
    name = "npm_package",
    package_name = "@angular/animations",
    srcs = [
        "package.json",
    ],
    tags = [
        "release-with-framework",
    ],
    # Do not add more to this list.
    # Dependencies on the full npm_package cause long re-builds.
    visibility = [
        "//adev:__pkg__",
        "//aio:__pkg__",
        "//aio/content/examples:__subpackages__",
        "//aio/tools/examples:__pkg__",
        "//integration:__subpackages__",
        "//packages/compiler-cli/integrationtest:__pkg__",
        "//packages/compiler/test:__pkg__",
    ],
    deps = [
        ":animations",
        "//packages/animations/browser",
        "//packages/animations/browser/testing",
    ],
)

api_golden_test_npm_package(
    name = "animations_api",
    data = [
        ":npm_package",
        "//goldens:public-api",
    ],
    golden_dir = "angular/goldens/public-api/animations",
    npm_package = "angular/packages/animations/npm_package",
)

api_golden_test(
    name = "animations_errors",
    data = [
        "//goldens:public-api",
        "//packages/animations",
        "//packages/animations/browser",
    ],
    entry_point = "angular/packages/animations/src/errors.d.ts",
    golden = "angular/goldens/public-api/animations/errors.md",
)

filegroup(
    name = "files_for_docgen",
    srcs = glob([
        "*.ts",
        "src/**/*.ts",
    ]) + ["PACKAGE.md"],
)

generate_api_docs(
    name = "animations_docs",
    srcs = [
        ":files_for_docgen",
        "//packages:common_files_and_deps_for_docs",
        "//packages/common:files_for_docgen",
    ],
    entry_point = ":index.ts",
    module_name = "@angular/animations",
)
back to top