aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-01-02 08:28:01 +0000
committerPaul Oliver <contact@pauloliver.dev>2026-01-02 08:28:01 +0000
commit43af089b3588b6fd29a1b09be9874054e0291c5e (patch)
treee89ec99e4045e74269de6289db8533f41944cedb /Makefile
parent62fce45039b0b8ab3d9d42b69a000fec00e1d35e (diff)
Adds scaffolding for Vue.js frontend
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 68fc7ca..6a9d963 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,18 @@
-resolver = $(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts)
-packages = $(shell ls -dQm hsm-*)
+resolver = $(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts)
+packages = $(shell ls -dQm hsm-*)
+client_dir = hsm-web/Client
build:
+ cd $(client_dir) && npm run build
stack build
clean:
+ cd $(client_dir) && rm -rf dist
stack clean --full
update:
+ cd $(client_dir) && npm update
yq -i '.resolver="$(resolver)" | .packages=[$(packages)]' stack.yaml
+
+watch:
+ cd $(client_dir) && npm run serve