octopod/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

.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
2020-12-09 16:20:24 +03:00
build-backend:
nix-build . -A octopod-backend.components.exes.octopod-exe -j auto
2020-12-09 16:20:24 +03:00
build-octo-cli:
nix-build . -A octo-cli.components.exes.octo -j auto
2020-12-09 16:20:24 +03:00
build-frontend:
nix-build . -A octopod-frontend-pretty -o frontend-result -j auto
2020-12-09 16:20:24 +03:00
backend-docs:
nix-build . -A octopod-backend.components.library.doc -j auto
2020-12-09 16:20:24 +03:00
repl:
nix-shell --run "cabal repl lib:octopod-backend" -j auto
2020-12-09 16:20:24 +03:00
shell:
nix-shell -j auto
2020-12-09 16:20:24 +03:00
ghcid-backend:
nix-shell --run 'ghcid -c "cabal new-repl octopod-backend"' -j auto
2020-12-09 16:20:24 +03:00
ghcid-cli:
nix-shell --run 'ghcid -c "cabal new-repl octo-cli"' -j auto
2020-12-09 16:20:24 +03:00
ghcid-frontend:
nix-shell --run 'ghcid -c "cabal new-repl octopod-frontend -fdevelopment --ghc-options=-Wwarn" --warnings --test 'Main.main'' -j auto
2020-12-09 16:20:24 +03:00
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-caddy-for-ghcid:
`nix-build dev -A caddyForGhcid -j auto`