blob: 5b233bfce4908f6c8f4324486a29d644c21d14fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|