bb5053990b
Henrik, I've left editable/editor alone to avoid causing a conflict; please add them in your PR instead when you get a chance.
49 lines
889 B
Python
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()
|