build: Add pullapprove verification tool to dev-infra-private package (#35911)

Migrates pullapprove verification tool to be available in the dev-infra-private
package

PR Close #35911
This commit is contained in:
Joey Perrott
2020-03-04 14:37:21 -08:00
committed by Matias Niemelä
parent 65a6848ed7
commit e4b1e6c622
6 changed files with 274 additions and 3 deletions

View File

@ -1,5 +1,6 @@
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
load("@npm_bazel_typescript//:index.bzl", "ts_library")
load("@npm_bazel_rollup//:index.bzl", "rollup_bundle")
ts_library(
name = "cli",
@ -7,10 +8,24 @@ ts_library(
"cli.ts",
],
deps = [
"//dev-infra/pullapprove",
"@npm//@types/node",
],
)
rollup_bundle(
name = "bundle",
config_file = "rollup.config.js",
entry_point = ":cli.ts",
format = "umd",
sourcemap = "hidden",
deps = [
":cli",
"@npm//rollup-plugin-commonjs",
"@npm//rollup-plugin-node-resolve",
],
)
pkg_npm(
name = "npm_package",
srcs = [
@ -18,6 +33,6 @@ pkg_npm(
],
visibility = ["//visibility:public"],
deps = [
":cli",
":bundle",
],
)