aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..003ee5e
--- /dev/null
+++ b/makefile
@@ -0,0 +1,9 @@
+
+ESFLAGS = --target=esnext --sourcemap --format=esm
+
+all: frontend/bundle.js
+watch:
+ esbuild frontend/main.ts --bundle --outfile=frontend/bundle.js $(ESFLAGS) --watch
+
+frontend/bundle.js: $(shell find frontend -name '*.ts')
+ esbuild frontend/main.ts --bundle --outfile=frontend/bundle.js $(ESFLAGS)