build: add ui command to Makefile for shadcn components
This commit is contained in:
5
Makefile
5
Makefile
@@ -3,6 +3,8 @@
|
|||||||
ENV ?= dev
|
ENV ?= dev
|
||||||
COMPOSE_FILE = docker-compose$(if $(filter $(ENV),prod),.prod,).yml
|
COMPOSE_FILE = docker-compose$(if $(filter $(ENV),prod),.prod,).yml
|
||||||
COMPOSE = docker compose -f $(COMPOSE_FILE)
|
COMPOSE = docker compose -f $(COMPOSE_FILE)
|
||||||
|
# Service name of the dev container
|
||||||
|
SERVICE_NAME = app
|
||||||
|
|
||||||
.PHONY: up stop build deploy logs
|
.PHONY: up stop build deploy logs
|
||||||
|
|
||||||
@@ -31,3 +33,6 @@ logs:
|
|||||||
|
|
||||||
clean:
|
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