aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-11-02 23:54:57 +0100
committerJulien Dessaux2022-11-02 23:54:57 +0100
commit51104b4b5d3310814d13008410f5584cef779d76 (patch)
tree6c4819a93c7434cc7ac39c94e1d4b62e8235233f
parentAdded build with buildah and deploy to kubernetes (diff)
downloadgrenade-brothers-51104b4b5d3310814d13008410f5584cef779d76.tar.gz
grenade-brothers-51104b4b5d3310814d13008410f5584cef779d76.tar.bz2
grenade-brothers-51104b4b5d3310814d13008410f5584cef779d76.zip
Added a run makefile target
-rw-r--r--GNUmakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index e749412..fd41a37 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -27,8 +27,12 @@ init: ## make init # initialize project dependencies
push: ## make push # push the built image to quay.io
buildah push adyxax/grenade-brothers quay.io/adyxax/grenade-brothers:$(REVISION)
+.PHONY: run
+run: ## make run # run a nodejs web server
+ node_modules/.bin/w4 run --port 80 --no-open --no-qr zig-out/lib/cart.wasm
+
.PHONY: serve
-serve: ## make serve # run a nodejs web server
+serve: ## make serve # run a nodejs development web server that watches the code file and recompiles upon changes
node_modules/.bin/w4 watch --no-open --no-qr
.DEFAULT_GOAL := help