mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d12d068c37
Introduce two new bazel rules: tsec_test and tsec_config, for describing the tsec checks and the tsconfig file needed for such checks, respectively. Currently, tsec_test only checks the srcs of a ts_library or ng_module. It does not check direct or transitive dependencies. Also, tsconfig files need to be manually maintained to make sure tsec can read all necessary input (including global symbols). PR Close #43108
37 lines
708 B
Python
37 lines
708 B
Python
load("//tools:defaults.bzl", "ts_config", "ts_library")
|
|
load("//tools:tsec.bzl", "tsec_config")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files([
|
|
"tsconfig-build.json",
|
|
"tsconfig.json",
|
|
])
|
|
|
|
ts_library(
|
|
name = "types",
|
|
srcs = glob(["*.ts"]),
|
|
deps = [
|
|
"//packages/zone.js/lib:zone_d_ts",
|
|
"@npm//@types/hammerjs",
|
|
],
|
|
)
|
|
|
|
ts_config(
|
|
name = "tsconfig-test",
|
|
src = "tsconfig-test.json",
|
|
deps = [":tsconfig-build.json"],
|
|
)
|
|
|
|
tsec_config(
|
|
name = "tsec_config",
|
|
src = "tsconfig-tsec-base.json",
|
|
exemption = ":tsec-exemption.json",
|
|
deps = [":tsconfig-build.json"],
|
|
)
|
|
|
|
exports_files([
|
|
"license-banner.txt",
|
|
"README.md",
|
|
])
|