76bdfb3899
* Load fields_web from fields.py if appropriate flag is set * Add FieldsPage as entry for new fields view * Pass mypy * Fix pylint * Fix fields_web in Qt5 (dae) May not be related to the CI error, but required for compatibility with Qt5.
74 lines
1.4 KiB
Python
74 lines
1.4 KiB
Python
load("//ts:prettier.bzl", "prettier_test")
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
load("//ts/svelte:svelte.bzl", "compile_svelte", "svelte_check")
|
|
load("//ts:esbuild.bzl", "esbuild")
|
|
load("//ts:generate_page.bzl", "generate_page")
|
|
load("//ts:compile_sass.bzl", "compile_sass")
|
|
load("//ts:typescript.bzl", "typescript")
|
|
|
|
generate_page(page = "fields")
|
|
|
|
compile_sass(
|
|
srcs = ["fields-base.scss"],
|
|
group = "base_css",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//sass:base_lib",
|
|
"//sass:scrollbar_lib",
|
|
"//sass/bootstrap",
|
|
],
|
|
)
|
|
|
|
_ts_deps = [
|
|
"//ts/components",
|
|
"//ts/lib",
|
|
"//ts/sveltelib",
|
|
"@npm//svelte",
|
|
]
|
|
|
|
compile_svelte(deps = _ts_deps)
|
|
|
|
typescript(
|
|
name = "index",
|
|
deps = _ts_deps + [
|
|
":svelte",
|
|
],
|
|
)
|
|
|
|
esbuild(
|
|
name = "fields",
|
|
args = {
|
|
"loader": {".svg": "text"},
|
|
},
|
|
entry_point = "index.ts",
|
|
output_css = "fields.css",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":base_css",
|
|
":index",
|
|
":svelte",
|
|
],
|
|
)
|
|
|
|
# Tests
|
|
################
|
|
|
|
prettier_test()
|
|
|
|
eslint_test()
|
|
|
|
svelte_check(
|
|
name = "svelte_check",
|
|
srcs = glob([
|
|
"*.ts",
|
|
"*.svelte",
|
|
]) + [
|
|
"//sass:button_mixins_lib",
|
|
"//sass/bootstrap",
|
|
"@npm//@types/bootstrap",
|
|
"@npm//@types/lodash-es",
|
|
"@npm//@types/marked",
|
|
"//ts/components",
|
|
],
|
|
)
|