From 1f639b98e07bcb4f7901e678e670894fbc370d8f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 24 Jul 2023 22:33:50 +0200 Subject: add frontend draft --- makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 makefile (limited to 'makefile') 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) -- cgit v1.2.3-70-g09d2