blob: c2b721fe45c62f9cfba1af10013a1e06f7df5d03 [file] [log] [blame]
load("//tools/bzl:plugin.bzl", "gerrit_plugin")
load("//tools/js:eslint.bzl", "plugin_eslint")
load("//tools/bzl:js.bzl", "gerrit_js_bundle", "karma_test")
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
package_group(
name = "visibility",
packages = ["//plugins/checks-jenkins/..."],
)
package(default_visibility = [":visibility"])
ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//plugins:tsconfig-plugins-base.json",
],
)
ts_project(
name = "checks-jenkins-ts",
srcs = glob(
["**/*.ts"],
exclude = ["**/*test*"],
),
incremental = True,
out_dir = "_bazel_ts_out",
tsc = "//tools/node_tools:tsc-bin",
tsconfig = ":tsconfig",
deps = [
"@plugins_npm//@gerritcodereview/typescript-api",
"@plugins_npm//lit",
],
)
gerrit_js_bundle(
name = "checks-jenkins",
srcs = [":checks-jenkins-ts"],
entry_point = "_bazel_ts_out/plugin.js",
)
# Creates lint_test and lint_bin rules.
plugin_eslint()