diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-02-10 02:55:48 +0000 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-02-10 02:55:48 +0000 |
| commit | 39c4a5f7ad2a7cffe5227d20ed7485845911c905 (patch) | |
| tree | 3231d32e3c90ff3740a1793b61319c7091f3b34e /Makefile | |
| parent | e7143436a334f364a6ae8866eb3fb31a259ff90c (diff) | |
Adds deployment support
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,3 @@ -resolver = $(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts) -packages = $(shell ls -dQm hsm-*) client_dir = hsm-web/Client build: @@ -12,7 +10,11 @@ clean: update: cd $(client_dir) && npm update - yq -i '.resolver="$(resolver)" | .packages=[$(packages)]' stack.yaml + yq -i '.resolver="$(shell curl -s https://www.stackage.org/download/snapshots.json | yq .lts)" | .packages=[$(shell ls -dQm hsm-*)]' stack.yaml + +deploy: + rsync -rv --mkpath --delete $(shell find .stack-work -type d -name bin) hsmouse:~/.local/ + rsync -rv --mkpath --delete $(client_dir)/dist/ hsmouse:~/Client/dist/ watch: cd $(client_dir) && npm run serve |
