Add frontend-build command to justfile
This commit is contained in:
@@ -60,8 +60,19 @@ swag-generate: swag-install
|
|||||||
@echo "Generating OpenAPI docs..."
|
@echo "Generating OpenAPI docs..."
|
||||||
@swag init -g internal/server/routes.go -o cmd/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]
|
[no-cd]
|
||||||
build: sqlc-generate templ-build swag-generate
|
build: sqlc-generate templ-build frontend-build swag-generate
|
||||||
@echo "Building..."
|
@echo "Building..."
|
||||||
@go build -o main cmd/main.go
|
@go build -o main cmd/main.go
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user