diff --git a/justfile b/justfile index 6e8be40..3a5599a 100644 --- a/justfile +++ b/justfile @@ -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