aboutsummaryrefslogtreecommitdiff
path: root/client-web/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-10-26 23:54:33 +0200
committermetamuffin <metamuffin@disroot.org>2022-10-26 23:54:33 +0200
commit2a83c8bdbdd5a67b6068420520e83524f4a6f6bd (patch)
tree8638903b93eb929ca74e5027a1816820ff0bc346 /client-web/makefile
parentd0162d41438c7ee3d9bc5321f73ed33defc443a3 (diff)
downloadkeks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar
keks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar.bz2
keks-meet-2a83c8bdbdd5a67b6068420520e83524f4a6f6bd.tar.zst
some code for streamed downloads
Diffstat (limited to 'client-web/makefile')
-rw-r--r--client-web/makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/client-web/makefile b/client-web/makefile
index c9a7db3..e81a09d 100644
--- a/client-web/makefile
+++ b/client-web/makefile
@@ -1,7 +1,9 @@
.PHONY: all watch
-all: public/assets/bundle.js
+all: public/assets/bundle.js public/assets/sw.js
watch:
- deno bundle --no-check --watch source/index.ts public/assets/bundle.js
-public/assets/bundle.js: source/*
+ deno bundle --no-check --watch source/index.ts public/assets/bundle.js &
+ deno bundle --no-check --watch source/sw/worker.ts public/assets/sw.js
+public/assets/bundle.js: $(shell find source -type f -name '*.ts')
deno bundle --no-check --unstable source/index.ts > $@
-
+public/assets/sw.js: $(shell find source/sw -type f -name '*.ts')
+ deno bundle --no-check --unstable source/sw/worker.ts > $@