anki/ts/reviewer/BUILD.bazel
Damien Elmes 9edac805ad support card state mutator in test scheduler
Documentation to come
2021-05-17 16:59:02 +10:00

55 lines
1.0 KiB
Python

load("@npm//@bazel/typescript:index.bzl", "ts_library")
load("//ts:prettier.bzl", "prettier_test")
load("//ts:eslint.bzl", "eslint_test")
load("//ts/svelte:svelte.bzl", "svelte", "svelte_check")
load("//ts:esbuild.bzl", "esbuild")
load("//ts:compile_sass.bzl", "compile_sass")
ts_library(
name = "lib",
srcs = glob(["*.ts"]),
deps = [
"//ts/lib",
"//ts/lib:backend_proto",
],
)
esbuild(
name = "reviewer_extras",
srcs = [
"//ts:protobuf-shim.js",
],
args = [
"--inject:$(location //ts:protobuf-shim.js)",
"--resolve-extensions=.mjs,.js",
"--log-level=warning",
],
entry_point = "index.ts",
external = [
"protobufjs/light",
],
visibility = ["//visibility:public"],
deps = [
":lib",
"//ts/lib",
"//ts/lib:backend_proto",
],
)
# Tests
################
prettier_test(
name = "format_check",
srcs = glob([
"*.ts",
]),
)
eslint_test(
name = "eslint",
srcs = glob([
"*.ts",
]),
)