From 1d92ce00202f4db82c5e2ec793b5f0cf621876b9 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 4 Sep 2022 16:22:46 +0200 Subject: Add Makefile --- Makefile | 9 +++++++++ README.md | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..593752d --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +build: + @esbuild \ + --bundle src/main.ts \ + --minify \ + --target=es2017 \ + --outdir=public + +clean: + @rm -f public/main.js diff --git a/README.md b/README.md index 4060ec1..c23312d 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,6 @@ With nix installed: bin/dev-server -Then, open your browser at `http://localhost:8000`. +# Build + + make -- cgit v1.2.3