anki/ts/reviewer/BUILD.bazel
Damien Elmes bb5053990b pass ts deps into most Svelte packages; remove redundant deps
Henrik, I've left editable/editor alone to avoid causing a conflict;
please add them in your PR instead when you get a chance.
2021-10-18 12:44:31 +10:00

49 lines
889 B
Python

load("//ts:prettier.bzl", "prettier_test")
load("//ts:eslint.bzl", "eslint_test")
load("//ts:esbuild.bzl", "esbuild")
load("//ts:compile_sass.bzl", "compile_sass")
load("//ts:typescript.bzl", "typescript")
compile_sass(
srcs = [
"reviewer.scss",
],
group = "reviewer_scss",
visibility = ["//visibility:public"],
deps = [],
)
typescript(
name = "reviewer_ts",
deps = [
"//ts/lib",
"@npm//css-browser-selector",
"@npm//jquery",
],
)
esbuild(
name = "reviewer",
entry_point = "index_wrapper.ts",
visibility = ["//visibility:public"],
deps = [
":reviewer_ts",
],
)
esbuild(
name = "reviewer_extras_bundle",
entry_point = "reviewer_extras.ts",
visibility = ["//visibility:public"],
deps = [
":reviewer_ts",
],
)
# Tests
################
prettier_test()
eslint_test()