2021-07-13 11:53:53 +03:00
|
|
|
.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:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-build . -A octopod-backend.components.exes.octopod-exe -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
build-octo-cli:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-build . -A octo-cli.components.exes.octo -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
build-frontend:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-build . -A octopod-frontend-pretty -o frontend-result -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
backend-docs:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-build . -A octopod-backend.components.library.doc -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
repl:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-shell --run "cabal repl lib:octopod-backend" -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
shell:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-shell -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
ghcid-backend:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-shell --run 'ghcid -c "cabal new-repl octopod-backend"' -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
ghcid-cli:
|
2021-07-13 11:53:53 +03:00
|
|
|
nix-shell --run 'ghcid -c "cabal new-repl octo-cli"' -j auto
|
2020-12-09 16:20:24 +03:00
|
|
|
|
|
|
|
ghcid-frontend:
|
2021-07-13 11:53:53 +03:00
|
|
|
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
|
2021-01-12 11:47:06 +03:00
|
|
|
|
2021-08-20 19:31:28 +03:00
|
|
|
run-backend-dev:
|
|
|
|
`nix-build dev -A backend -j auto`
|
2021-01-12 11:47:06 +03:00
|
|
|
|
2021-08-20 19:31:28 +03:00
|
|
|
run-frontend-dev:
|
|
|
|
`nix-build dev -A frontend -j auto`
|
2021-01-12 11:47:06 +03:00
|
|
|
|
2021-08-20 19:31:28 +03:00
|
|
|
run-caddy-for-ghcid:
|
|
|
|
`nix-build dev -A caddyForGhcid -j auto`
|