angular-docs-cn/packages/compiler-cli/BUILD.bazel

39 lines
816 B
Python
Raw Normal View History

package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "npm_package")
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_config")
ts_config(
name = "tsconfig",
src = "tsconfig-build.json",
deps = ["//packages:tsconfig-build.json"],
)
ts_library(
name = "compiler-cli",
srcs = glob(
[
"*.ts",
"src/**/*.ts",
],
exclude = [
"src/integrationtest/**/*.ts",
],
),
module_name = "@angular/compiler-cli",
node_modules = "@//:node_modules",
tsconfig = ":tsconfig",
deps = [
"//packages/compiler",
],
)
npm_package(
name = "npm_package",
srcs = [
"package.json",
],
tags = ["release-with-framework"],
deps = [":compiler-cli"],
)