ab6a68ec49
* Refactor out Placeholder from CardInfo.svelte * Add breakpoint parameter for Container - Use `Container` component inside `TitledContainer` * Build Item into Row - Use Row in DeckOptionsPage instead of just Item * Reengineer Container/Row/Col CSS * Inline Badges next to Labels when Lable spans multiple rows * Adjust margins for mobile * Implement Col component breakpoints * Move card-info to use new Container and Row components * Join StickyHeader and StickyFooter to StickyContainer * Remove default middle vertical-alignment for Badges again * Satisfy tests * Restore inline gutters in change-notetype Mapper * Add some comment to Col and Container * Fix breaking behavior in DeckOptionsPage when multi-column * Add back toolbar left padding to counter-act buttongroup right margins * Make Label in SwitchRow take more of available space
48 lines
902 B
Python
48 lines
902 B
Python
load("//ts/svelte:svelte.bzl", "compile_svelte", "svelte_check")
|
|
load("//ts:prettier.bzl", "prettier_test")
|
|
load("//ts:eslint.bzl", "eslint_test")
|
|
load("//ts:typescript.bzl", "typescript")
|
|
|
|
_ts_deps = [
|
|
"//ts/lib",
|
|
"//ts/sveltelib",
|
|
"@npm//@popperjs/core",
|
|
"@npm//@types/bootstrap",
|
|
"@npm//bootstrap",
|
|
"@npm//svelte",
|
|
]
|
|
|
|
compile_svelte(
|
|
deps = _ts_deps + ["//sass/bootstrap"],
|
|
)
|
|
|
|
typescript(
|
|
name = "components",
|
|
deps = _ts_deps + [
|
|
":svelte",
|
|
],
|
|
)
|
|
|
|
# Tests
|
|
################
|
|
|
|
prettier_test()
|
|
|
|
eslint_test()
|
|
|
|
svelte_check(
|
|
name = "svelte_check",
|
|
srcs = glob([
|
|
"*.ts",
|
|
"*.svelte",
|
|
]) + [
|
|
"//sass:base_lib",
|
|
"//sass:button_mixins_lib",
|
|
"//sass:scrollbar_lib",
|
|
"//sass:breakpoints_lib",
|
|
"//sass/bootstrap",
|
|
"@npm//@types/bootstrap",
|
|
"//ts/sveltelib:sveltelib_pkg",
|
|
],
|
|
)
|