plug task enqueing properly
This commit is contained in:
@@ -8,29 +8,33 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Generating models from schema/models..."
|
||||
|
||||
# Django ORM models
|
||||
# Django ORM models: domain models + enums
|
||||
python -m modelgen from-schema \
|
||||
--schema schema/models \
|
||||
--output mpr/media_assets/models.py \
|
||||
--targets django
|
||||
--targets django \
|
||||
--include dataclasses,enums
|
||||
|
||||
# Pydantic schemas for FastAPI
|
||||
# Pydantic schemas for FastAPI: domain models + enums
|
||||
python -m modelgen from-schema \
|
||||
--schema schema/models \
|
||||
--output api/schemas/models.py \
|
||||
--targets pydantic
|
||||
--targets pydantic \
|
||||
--include dataclasses,enums
|
||||
|
||||
# TypeScript types for Timeline UI
|
||||
# TypeScript types for Timeline UI: domain models + enums + API types
|
||||
python -m modelgen from-schema \
|
||||
--schema schema/models \
|
||||
--output ui/timeline/src/types.ts \
|
||||
--targets typescript
|
||||
--targets typescript \
|
||||
--include dataclasses,enums,api
|
||||
|
||||
# Protobuf for gRPC
|
||||
# Protobuf for gRPC: gRPC messages + service
|
||||
python -m modelgen from-schema \
|
||||
--schema schema/models \
|
||||
--output rpc/protos/worker.proto \
|
||||
--targets proto
|
||||
--targets proto \
|
||||
--include grpc
|
||||
|
||||
# Generate gRPC stubs from proto
|
||||
echo "Generating gRPC stubs..."
|
||||
|
||||
Reference in New Issue
Block a user