-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
43 lines (29 loc) · 1.14 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: build-backend build-octo-cli build-frontend backend-docs repl shell ghcid ghcid-cli ghcid-frontend push-octopod run-backend-dev run-frontend-dev
build-backend:
nix-build . -A octopod-backend.components.exes.octopod-exe -j auto
build-octo-cli:
nix-build . -A octo-cli.components.exes.octo -j auto
build-frontend:
nix-build . -A octopod-frontend-pretty -o frontend-result -j auto
backend-docs:
nix-build . -A octopod-backend.components.library.doc -j auto
repl:
nix-shell --run "cabal repl lib:octopod-backend" -j auto
shell:
nix-shell -j auto
ghcid-backend:
nix-shell --run 'ghcid -c "cabal new-repl octopod-backend"' -j auto
ghcid-cli:
nix-shell --run 'ghcid -c "cabal new-repl octo-cli"' -j auto
ghcid-frontend:
nix-shell --run 'ghcid -c "cabal new-repl octopod-frontend -fdevelopment --ghc-options=-Wwarn" --warnings --test 'Main.main'' -j auto
push-octopod:
./build.sh build-and-push latest
run-backend-dev:
`nix-build dev -A backend -j auto`
run-frontend-dev:
`nix-build dev -A frontend -j auto`
run-frontend-prod:
`nix-build dev -A frontend --arg prod true -j auto`
run-caddy-for-ghcid:
`nix-build dev -A caddyForGhcid -j auto`