anki/ts/html-filter/BUILD.bazel
2021-04-20 13:44:44 +02:00

42 lines
688 B
Python

load("@npm//@bazel/typescript:index.bzl", "ts_library")
load("//ts:jest.bzl", "jest_test")
load("//ts:prettier.bzl", "prettier_test")
load("//ts:eslint.bzl", "eslint_test")
ts_library(
name = "html-filter",
module_name = "html-filter",
srcs = glob(
["*.ts"],
exclude = ["*.test.ts"],
),
tsconfig = "//ts:tsconfig.json",
visibility = ["//visibility:public"],
deps = [],
)
jest_test(
deps = [
"html-filter",
],
)
# Tests
################
prettier_test(
name = "format_check",
srcs = glob([
"*.ts",
]),
)
eslint_test(
name = "eslint",
srcs = glob(
[
"*.ts",
],
),
)