From a13c40bfc146622ca2fb6363155907ddd26b0474 Mon Sep 17 00:00:00 2001 From: Daniel Schulteis Date: Fri, 30 Jan 2026 22:15:46 +0100 Subject: [PATCH] build: add ui command to Makefile for shadcn components --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c39111f..b9f50c6 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ ENV ?= dev COMPOSE_FILE = docker-compose$(if $(filter $(ENV),prod),.prod,).yml COMPOSE = docker compose -f $(COMPOSE_FILE) +# Service name of the dev container +SERVICE_NAME = app .PHONY: up stop build deploy logs @@ -30,4 +32,7 @@ logs: $(COMPOSE) logs -f clean: - docker image prune -f \ No newline at end of file + docker image prune -f + +ui: + $(COMPOSE) exec $(SERVICE_NAME) npx shadcn@latest add $(component) \ No newline at end of file