Skip to content

Commit

Permalink
Add make target for swagger UI generator
Browse files Browse the repository at this point in the history
  • Loading branch information
moebiusband73 committed Jun 26, 2024
1 parent 5c5484b commit 552da00
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SVELTE_SRC = $(wildcard $(FRONTEND)/src/*.svelte) \
$(wildcard $(FRONTEND)/src/plots/*.svelte) \
$(wildcard $(FRONTEND)/src/joblist/*.svelte)

.PHONY: clean distclean test tags frontend $(TARGET)
.PHONY: clean distclean test tags frontend swagger $(TARGET)

.NOTPARALLEL:

Expand All @@ -40,6 +40,11 @@ frontend:
$(info ===> BUILD frontend)
cd web/frontend && npm install && npm run build

swagger:
$(info ===> GENERATE swagger)
@go run github.com/swaggo/swag/cmd/swag init -d ./internal/api,./pkg/schema -g rest.go -o ./api
@mv ./api/docs.go ./internal/api/docs.go

clean:
$(info ===> CLEAN)
@go clean
Expand Down

0 comments on commit 552da00

Please sign in to comment.