2020-06-25 04:32:41 -04:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
2020-07-20 14:53:26 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
2020-03-04 17:37:21 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "pullapprove",
|
|
|
|
srcs = [
|
2020-03-26 13:45:09 -04:00
|
|
|
"cli.ts",
|
2020-04-16 14:12:25 -04:00
|
|
|
"condition_evaluator.ts",
|
2020-03-20 09:59:35 -04:00
|
|
|
"group.ts",
|
|
|
|
"logging.ts",
|
|
|
|
"parse-yaml.ts",
|
2020-07-20 14:53:26 -04:00
|
|
|
"pullapprove_arrays.ts",
|
|
|
|
"utils.ts",
|
2020-03-04 17:37:21 -05:00
|
|
|
"verify.ts",
|
|
|
|
],
|
2020-03-17 07:58:17 -04:00
|
|
|
module_name = "@angular/dev-infra-private/pullapprove",
|
2020-03-04 17:37:21 -05:00
|
|
|
visibility = ["//dev-infra:__subpackages__"],
|
|
|
|
deps = [
|
2020-04-20 16:00:10 -04:00
|
|
|
"//dev-infra/utils",
|
2020-03-04 17:37:21 -05:00
|
|
|
"@npm//@types/minimatch",
|
|
|
|
"@npm//@types/node",
|
|
|
|
"@npm//@types/shelljs",
|
|
|
|
"@npm//@types/yaml",
|
2020-03-26 13:45:09 -04:00
|
|
|
"@npm//@types/yargs",
|
2020-03-04 17:37:21 -05:00
|
|
|
"@npm//minimatch",
|
|
|
|
"@npm//shelljs",
|
|
|
|
"@npm//yaml",
|
2020-03-26 13:45:09 -04:00
|
|
|
"@npm//yargs",
|
2020-03-04 17:37:21 -05:00
|
|
|
],
|
|
|
|
)
|
2020-07-20 14:53:26 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "pullapprove_test_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = glob(
|
|
|
|
["*.spec.ts"],
|
|
|
|
),
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
|
|
|
":pullapprove",
|
|
|
|
"@npm//@types/jasmine",
|
|
|
|
"@npm//@types/node",
|
|
|
|
"@npm//typescript",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "pullapprove_test",
|
|
|
|
srcs = [":pullapprove_test_lib"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|