2021-03-25 00:43:01 +01:00
|
|
|
load("@npm//@bazel/typescript:index.bzl", "ts_library")
|
2021-04-16 15:46:31 +02:00
|
|
|
load("//ts:jest.bzl", "jest_test")
|
2021-03-25 00:43:01 +01:00
|
|
|
load("//ts:prettier.bzl", "prettier_test")
|
|
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "html-filter",
|
2021-03-28 11:39:11 +02:00
|
|
|
srcs = glob(
|
|
|
|
["*.ts"],
|
|
|
|
exclude = ["*.test.ts"],
|
|
|
|
),
|
2021-06-19 01:43:09 +02:00
|
|
|
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 = [],
|
|
|
|
)
|
|
|
|
|
2021-04-16 15:46:31 +02:00
|
|
|
jest_test(
|
2021-06-19 01:43:09 +02:00
|
|
|
env = "jsdom",
|
2021-03-28 11:39:11 +02:00
|
|
|
deps = [
|
|
|
|
"html-filter",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-03-25 00:43:01 +01:00
|
|
|
# Tests
|
|
|
|
################
|
|
|
|
|
|
|
|
prettier_test(
|
|
|
|
name = "format_check",
|
|
|
|
srcs = glob([
|
|
|
|
"*.ts",
|
|
|
|
]),
|
|
|
|
)
|
|
|
|
|
|
|
|
eslint_test(
|
|
|
|
name = "eslint",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|