Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Add the `frontend-openapi` target to Makefile (#9184)

Jonathane7a11a02f725
diff --git a/Makefile b/Makefile
index 2c7d762f83..ad01334488 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ help:
@echo "frontend-build Build the frontend for localhost:9090"
@echo "frontend-test Run the frontend test suite once"
@echo "frontend-dev Run the frontend in developer mode on localhost:5173"
+ @echo "frontend-openapi Generate the OpenAPI schema"
@echo "frontend-typegen Generate types for the frontend from the OpenAPI schema"
@echo "frontend-lint Run frontend checks and fixable lint/format steps"
@echo "wheel Build the wheel for the current version"
@@ -66,6 +67,11 @@ frontend-test:
frontend-dev:
cd invokeai/frontend/web && pnpm dev
+frontend-openapi:
+ cd invokeai/frontend/web && \
+ python ../../../scripts/generate_openapi_schema.py > openapi.json && \
+ pnpm prettier --write openapi.json
+
frontend-typegen:
cd invokeai/frontend/web && python ../../../scripts/generate_openapi_schema.py | pnpm typegen