aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2023-09-17 12:23:47 +0200
committerJoris2023-09-17 12:23:47 +0200
commit1ebc55c72a1a17293bbf4ad86e0177a10a794750 (patch)
tree5fce0ea3a011ccbae85b0d3927f8ac33099585fb /Makefile
parentc236facb4d4c277773c83f1a4ee85b48833d7e67 (diff)
Make app packageable
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