2020-03-10 13:29:44 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
2020-06-25 04:32:41 -04:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
2020-03-10 13:29:44 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "commit-message",
|
2020-09-14 16:21:31 -04:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
exclude = ["**/*.spec.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",
|
2021-03-19 15:11:21 -04:00
|
|
|
"@npm//@types/conventional-commits-parser",
|
2020-07-29 17:19:15 -04:00
|
|
|
"@npm//@types/inquirer",
|
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",
|
2021-03-19 15:11:21 -04:00
|
|
|
"@npm//conventional-commits-parser",
|
2020-07-29 17:19:15 -04:00
|
|
|
"@npm//inquirer",
|
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(
|
2020-08-12 12:40:37 -04:00
|
|
|
name = "test_lib",
|
2020-03-10 13:29:44 -04:00
|
|
|
testonly = True,
|
2020-09-14 16:21:31 -04:00
|
|
|
srcs = glob(["**/*.spec.ts"]),
|
2020-03-10 13:29:44 -04:00
|
|
|
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 = [
|
2020-09-14 14:24:15 -04:00
|
|
|
":test_lib",
|
2020-03-10 13:29:44 -04:00
|
|
|
],
|
|
|
|
)
|