2021-03-25 00:43:01 +01:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
|
|
|
load("//ts:prettier.bzl", "prettier_test")
|
|
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "html-filter",
|
|
|
|
srcs = glob(["*.ts"]),
|
|
|
|
module_name = "html-filter",
|
2021-03-26 04:58:03 +01:00
|
|
|
tsconfig = "//ts:tsconfig.json",
|
2021-03-25 00:43:01 +01:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [],
|
|
|
|
)
|
|
|
|
|
|
|
|
# Tests
|
|
|
|
################
|
|
|
|
|
|
|
|
prettier_test(
|
|
|
|
name = "format_check",
|
|
|
|
srcs = glob([
|
|
|
|
"*.ts",
|
|
|
|
]),
|
|
|
|
)
|
|
|
|
|
|
|
|
eslint_test(
|
|
|
|
name = "eslint",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|