aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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