aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 593752d..fc2acc6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,11 @@
-build:
+build: library/public/main.js
+
+library/public/main.js:
@esbuild \
- --bundle src/main.ts \
+ --bundle library/client/main.ts \
--minify \
--target=es2017 \
- --outdir=public
+ --outdir=library/public
clean:
- @rm -f public/main.js
+ @rm -f library/public/*.js