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.
This commit is contained in:
Damien Elmes 2021-10-18 12:06:19 +10:00
parent 1f876cfe39
commit bb5053990b
7 changed files with 63 additions and 63 deletions

View File

@ -16,15 +16,18 @@ compile_sass(
],
)
compile_svelte()
_ts_deps = [
"//ts/components",
"//ts/lib",
"@npm//@fluent",
]
compile_svelte(deps = _ts_deps)
typescript(
name = "index",
deps = [
deps = _ts_deps + [
":svelte",
"//ts/components",
"//ts/lib",
"@npm//@fluent",
],
)

View File

@ -17,20 +17,23 @@ compile_sass(
],
)
compile_svelte()
_ts_deps = [
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@types/jest",
"@npm//lodash-es",
"@npm//svelte",
"@npm//marked",
]
compile_svelte(deps = _ts_deps)
typescript(
name = "index",
deps = [
deps = _ts_deps + [
":svelte",
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@types/jest",
"@npm//lodash-es",
"@npm//svelte",
"@npm//svelte2tsx",
],
)
@ -47,12 +50,6 @@ esbuild(
":base_css",
":index",
":svelte",
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//bootstrap",
"@npm//marked",
"@npm//protobufjs",
],
)

View File

@ -3,20 +3,23 @@ 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 = ["//sass/bootstrap"],
deps = _ts_deps + ["//sass/bootstrap"],
)
typescript(
name = "components",
deps = [
deps = _ts_deps + [
":svelte",
"//ts/lib",
"//ts/sveltelib",
"@npm//@popperjs/core",
"@npm//@types/bootstrap",
"@npm//bootstrap",
"@npm//svelte",
],
)

View File

@ -43,8 +43,6 @@ esbuild(
":base_css",
":index",
":svelte",
"//ts/lib",
"@npm//protobufjs",
],
)

View File

@ -18,25 +18,29 @@ compile_sass(
],
)
_ts_deps = [
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@popperjs",
"@npm//@types/jest",
"@npm//bootstrap-icons",
"@npm//lodash-es",
"@npm//svelte",
"@npm//marked",
]
compile_svelte(
deps = [
deps = _ts_deps + [
"//sass/bootstrap",
],
)
typescript(
name = "index",
deps = [
deps = _ts_deps + [
":svelte",
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@popperjs",
"@npm//@types/jest",
"@npm//bootstrap-icons",
"@npm//lodash-es",
"@npm//svelte",
],
)
@ -50,15 +54,9 @@ esbuild(
output_css = "deck-options.css",
visibility = ["//visibility:public"],
deps = [
"index",
":base_css",
":index",
":svelte",
"//ts/components",
"//ts/lib",
"//ts/sveltelib",
"@npm//bootstrap",
"@npm//marked",
"@npm//protobufjs",
],
)

View File

@ -15,20 +15,25 @@ compile_sass(
],
)
compile_svelte()
_ts_deps = [
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@types/d3",
"@npm//@types/lodash",
"@npm//d3",
"@npm//lodash-es",
"@npm//svelte",
]
compile_svelte(
deps = _ts_deps,
)
typescript(
name = "index",
deps = [
deps = _ts_deps + [
":svelte",
"//ts/lib",
"//ts/sveltelib",
"@npm//@fluent",
"@npm//@types/d3",
"@npm//@types/lodash",
"@npm//d3",
"@npm//lodash-es",
"@npm//svelte",
],
)

View File

@ -28,8 +28,6 @@ esbuild(
visibility = ["//visibility:public"],
deps = [
":reviewer_ts",
"//ts/lib",
"@npm//protobufjs",
],
)
@ -39,8 +37,6 @@ esbuild(
visibility = ["//visibility:public"],
deps = [
":reviewer_ts",
"//ts/lib",
"@npm//protobufjs",
],
)