👷🏻 Auto-generate frontend client (#1320)
This commit is contained in:
8
scripts/generate-client.sh
Normal file
8
scripts/generate-client.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
PYTHONPATH=backend python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > openapi.json
|
||||
node frontend/modify-openapi-operationids.js
|
||||
mv openapi.json frontend/
|
||||
cd frontend
|
||||
npm run generate-client
|
||||
npx biome format --write ./src/client
|
Reference in New Issue
Block a user