.PHONY: bootstrap setup dev test lint fmt fmt-check check check-frontend \
	check-backend docker hooks

# Standard targets are thin shims; the implementations live in script/
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
# of README.md). test, lint, fmt, fmt-check and check all cover the
# whole repo: the frontend at the root and the Go backend in backend/.

bootstrap:
	@script/bootstrap

setup:
	@script/setup

dev:
	yarn dev

test:
	@script/test

lint:
	@script/lint

fmt:
	@script/fmt

fmt-check:
	@script/fmt-check

check:
	@script/check

# Half-repo gates. Used by the two Dockerfiles, whose build stages only
# have the toolchain for their own half; prefer `make check` otherwise.
check-frontend:
	@script/frontend-check

check-backend:
	@backend/script/check

docker:
	@script/docker

hooks:
	@script/install-precommit
