diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5b233bf --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +client_dir = hsm-web/Client + +build: + stack build + +client: + cd $(client_dir) && npm run build + +clean: + cd $(client_dir) && rm -rf dist + stack clean --full + +update: + cd $(client_dir) && npm update + 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 |
