From 10b8a1c3cb3c0aff833856792230dd7c47de5a73 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 22 Mar 2021 03:06:53 +0100 Subject: [PATCH] Move async and asyncReactive to sveltelib - sveltelib is a lib for component-agnostic svelte utils --- ts/graphs/BUILD.bazel | 3 +++ ts/graphs/WithGraphData.svelte | 4 +-- ts/sveltelib/BUILD.bazel | 32 +++++++++++++++++++++++ ts/{graphs => sveltelib}/async.ts | 0 ts/{graphs => sveltelib}/asyncReactive.ts | 0 ts/tsconfig.json | 3 ++- 6 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 ts/sveltelib/BUILD.bazel rename ts/{graphs => sveltelib}/async.ts (100%) rename ts/{graphs => sveltelib}/asyncReactive.ts (100%) diff --git a/ts/graphs/BUILD.bazel b/ts/graphs/BUILD.bazel index 84b26bcb7..8911b97ef 100644 --- a/ts/graphs/BUILD.bazel +++ b/ts/graphs/BUILD.bazel @@ -20,6 +20,7 @@ ts_library( "GraphsPage", "lib", "//ts/lib", + "//ts/sveltelib", "@npm//svelte", "@npm//svelte2tsx", ], @@ -32,6 +33,7 @@ ts_library( exclude = ["index.ts"], ), deps = [ + "//ts/sveltelib", "//ts/lib", "//ts/lib:backend_proto", "@npm//@types/d3", @@ -59,6 +61,7 @@ esbuild( output_css = True, visibility = ["//visibility:public"], deps = [ + "//ts/sveltelib", "//ts/lib", "//ts/lib:backend_proto", "//ts/lib:fluent_proto", diff --git a/ts/graphs/WithGraphData.svelte b/ts/graphs/WithGraphData.svelte index bbaac8cd9..8ce026e1d 100644 --- a/ts/graphs/WithGraphData.svelte +++ b/ts/graphs/WithGraphData.svelte @@ -1,6 +1,6 @@