COMPOSE := docker compose{% if layout == 'part' %} --project-directory ..{% endif %} .PHONY: {% if layout == 'root' %}env recreate rebuild restart logs down {% endif %}fmt check build dev fmt: bun run fix check: bun run check bun run lint build: {% if serve == 'api' %} $(COMPOSE) run --rm frontend-dev sh -c "bun install && bun run build" {% else %} $(COMPOSE) build frontend {% endif %} dev: bun run dev {% if layout == 'root' %} env: @test -f .env || cp .env.example .env @test -f docker-compose.override.yml || cp docker-compose.override.yml.example docker-compose.override.yml recreate: $(COMPOSE) up -d --force-recreate rebuild: build $(COMPOSE) up -d restart: $(COMPOSE) restart logs: $(COMPOSE) logs -f --tail=100 down: $(COMPOSE) down {% endif %}