37 lines
724 B
Makefile
37 lines
724 B
Makefile
.PHONY: test check-dependencies check-fixture-lib check-kind-matrix check-frontend build-frontend mvp-up mvp-down mvp-build mvp-logs mvp-ps
|
|
|
|
COMPOSE := nerdctl compose -f deploy/docker-compose.yml
|
|
|
|
test:
|
|
cabal test --offline nuthatch-unit
|
|
|
|
check-dependencies:
|
|
./tests/kind/run.sh
|
|
|
|
check-fixture-lib:
|
|
./tests/kind/lib-test.sh
|
|
|
|
check-kind-matrix:
|
|
./tests/kind/matrix-run.sh
|
|
|
|
check-frontend:
|
|
npm --prefix web run check
|
|
|
|
build-frontend:
|
|
npm --prefix web run build
|
|
|
|
mvp-build:
|
|
$(COMPOSE) build nuthatch
|
|
|
|
mvp-up:
|
|
$(COMPOSE) up --build -d
|
|
@echo "Nuthatch MVP: http://127.0.0.1:8080 (dev login with any single-token username)"
|
|
|
|
mvp-down:
|
|
$(COMPOSE) down -v
|
|
|
|
mvp-logs:
|
|
$(COMPOSE) logs -f nuthatch
|
|
|
|
mvp-ps:
|
|
$(COMPOSE) ps
|