feat: add initial documentation and setup files for YANPM
All checks were successful
Test / test-frontend (pull_request) Successful in 23s
Test / frontend-build (pull_request) Successful in 26s
Verify / verify-generated-code (pull_request) Successful in 53s
Verify / verify-openapi-spec (pull_request) Successful in 6s
Test / test (pull_request) Successful in 1m15s
Test / lint (pull_request) Successful in 1m13s
Verify / verify-frontend-api-client (pull_request) Successful in 8s

This commit is contained in:
GW_MC
2025-12-05 21:09:58 +08:00
parent f9c1cac50f
commit 5668f465bb
6 changed files with 787 additions and 1 deletions

View File

@@ -42,9 +42,12 @@ generate-entity:
just cli db:migrate_and_generate --output-path ../../public/database/src/generated/entities
generate-openapi:
# delegate to cli
# Generate OpenAPI spec
cd apps/api && \
cargo run -- generate:openapi --output-path ./swagger.json
# Generate API client for frontend
cd apps/frontend && \
pnpm generate:openapi
generate-all: generate-entity generate-openapi