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