anki/ts/congrats/BUILD.bazel
Henrik Giesel 09c29219b4
Several CSS fixes - Editor Cleanup (#1470)
* Refactor editor css, fix editor button highlight

- Avoid using webview.css
- Move more buttons css into button_mixins

* Fix DropdownItem appearance

* Fix the visuals of tags

* Make dropdown font slightly smaller

* Give SelectOption a background color

* Move some css from deck-options-base to CardStateCustomizer

* Avoid using core.scss for CardStats

* Avoid using sass/core in congrats package

* Inline core.scss into webview.scss

* Include fusion-vars for base.scss

* need to keep core.scss around for now (dae)
2021-10-31 08:29:22 +10:00

67 lines
1.2 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:compile_sass.bzl", "compile_sass")
load("//ts:typescript.bzl", "typescript")
compile_sass(
srcs = ["congrats-base.scss"],
group = "congrats_css",
visibility = ["//visibility:public"],
deps = [
"//sass:base_lib",
"//sass:scrollbar_lib",
],
)
compile_svelte(
deps = ["//ts/lib"],
)
typescript(
name = "congrats_ts",
deps = [
":svelte",
"//ts/lib",
"//ts/components",
"@npm//@fluent",
"@npm//svelte",
"@npm//svelte2tsx",
],
)
esbuild(
name = "congrats",
args = {
"globalName": "anki",
},
entry_point = "index.ts",
output_css = "congrats.css",
visibility = ["//visibility:public"],
deps = [
":congrats_css",
":congrats_ts",
":svelte",
],
)
exports_files(["congrats.html"])
# Tests
################
prettier_test()
eslint_test()
svelte_check(
name = "svelte_check",
srcs = glob([
"*.ts",
"*.svelte",
]) + [
"//ts/lib:lib_pkg",
],
)