using penguiui
Some checks failed
CI / Check Style (push) Has been cancelled
CI / Run Clippy (push) Has been cancelled
CI / Run Tests (push) Has been cancelled

This commit is contained in:
Priec
2026-06-16 12:53:11 +02:00
parent 635cb34810
commit e3b99b0fd8
7 changed files with 334 additions and 215 deletions

View File

@@ -1,6 +1,33 @@
COMPOSE = docker compose -f docker-compose.prod.yml --env-file .env.production
.PHONY: up down restart logs build ps
# --- Frontend (Tailwind v4 + PenguinUI) -----------------------------
# Uses the Tailwind v4 standalone binary (no Node required at runtime).
# The compiled assets/static/css/app.css is committed and served by loco.
TW = bin/tailwindcss
CSS_IN = assets/css/app.css
CSS_OUT = assets/static/css/app.css
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_M),aarch64)
TW_TARGET = tailwindcss-linux-arm64
else
TW_TARGET = tailwindcss-linux-x64
endif
.PHONY: up down restart logs build ps css css-watch tailwind
$(TW):
@mkdir -p bin
curl -fsSL -o $(TW) \
"https://github.com/tailwindlabs/tailwindcss/releases/latest/download/$(TW_TARGET)"
chmod +x $(TW)
tailwind: $(TW)
css: $(TW)
$(TW) -i $(CSS_IN) -o $(CSS_OUT) --minify
css-watch: $(TW)
$(TW) -i $(CSS_IN) -o $(CSS_OUT) --watch
up:
$(COMPOSE) up -d --build