2020-03-10 13:29:44 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
|
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "commit-message",
|
|
|
|
srcs = [
|
2020-03-26 13:45:09 -04:00
|
|
|
"cli.ts",
|
2020-03-10 13:29:44 -04:00
|
|
|
"config.ts",
|
|
|
|
"validate.ts",
|
2020-03-26 13:45:09 -04:00
|
|
|
"validate-file.ts",
|
2020-03-20 15:24:12 -04:00
|
|
|
"validate-range.ts",
|
2020-03-10 13:29:44 -04:00
|
|
|
],
|
|
|
|
module_name = "@angular/dev-infra-private/commit-message",
|
|
|
|
visibility = ["//dev-infra:__subpackages__"],
|
|
|
|
deps = [
|
2020-04-20 16:00:10 -04:00
|
|
|
"//dev-infra/utils",
|
2020-03-10 13:29:44 -04:00
|
|
|
"@npm//@types/node",
|
2020-03-20 15:24:12 -04:00
|
|
|
"@npm//@types/shelljs",
|
2020-03-26 13:45:09 -04:00
|
|
|
"@npm//@types/yargs",
|
2020-03-20 15:24:12 -04:00
|
|
|
"@npm//shelljs",
|
2020-03-26 13:45:09 -04:00
|
|
|
"@npm//yargs",
|
2020-03-10 13:29:44 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "validate-test",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["validate.spec.ts"],
|
|
|
|
deps = [
|
|
|
|
":commit-message",
|
2020-04-20 16:00:10 -04:00
|
|
|
"//dev-infra/utils",
|
2020-03-10 13:29:44 -04:00
|
|
|
"@npm//@types/events",
|
|
|
|
"@npm//@types/jasmine",
|
|
|
|
"@npm//@types/node",
|
2020-05-20 17:22:29 -04:00
|
|
|
"@npm//inquirer",
|
2020-03-10 13:29:44 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
bootstrap = ["//tools/testing:node_no_angular_es5"],
|
|
|
|
deps = [
|
|
|
|
":commit-message",
|
|
|
|
":validate-test",
|
|
|
|
],
|
|
|
|
)
|