18 lines
303 B
Makefile
18 lines
303 B
Makefile
COMPOSE := docker compose --project-directory ..
|
|
|
|
.PHONY: 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
|