build: add ui command to Makefile for shadcn components
This commit is contained in:
7
Makefile
7
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
|
||||
docker image prune -f
|
||||
|
||||
ui:
|
||||
$(COMPOSE) exec $(SERVICE_NAME) npx shadcn@latest add $(component)
|
||||
Reference in New Issue
Block a user