Add frontend-build command to justfile

This commit is contained in:
2026-05-21 09:54:12 +02:00
parent b5926e3b31
commit bd0e7f4a8d
+12 -1
View File
@@ -60,8 +60,19 @@ swag-generate: swag-install
@echo "Generating OpenAPI docs..."
@swag init -g internal/server/routes.go -o cmd/docs
frontend-install:
@if ! command -v npm > /dev/null; then \
echo "npm is not installed on your machine. Please install Node.js first."; \
exit 1; \
fi
@cd cmd/frontend && npm install
frontend-build: frontend-install
@echo "Building frontend..."
@cd cmd/frontend && npm run build
[no-cd]
build: sqlc-generate templ-build swag-generate
build: sqlc-generate templ-build frontend-build swag-generate
@echo "Building..."
@go build -o main cmd/main.go