aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2022-09-04 16:22:46 +0200
committerJoris2022-09-04 16:23:52 +0200
commit1d92ce00202f4db82c5e2ec793b5f0cf621876b9 (patch)
tree2d71b3def23c399338792fc6794720bbead96c97
parent0b32b9110dd406ca052cfd7348f0ddd7e35b048e (diff)
Add Makefile
-rw-r--r--Makefile9
-rw-r--r--README.md4
2 files changed, 12 insertions, 1 deletions
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