chore(mobile): depend on OpenAPI generation in appropriate codegen tasks (#30425)

This commit is contained in:
Adam Gastineau 2026-07-31 05:52:59 -07:00 committed by GitHub
parent 627b52fdaf
commit 920552c1c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -69,7 +69,7 @@ sources = [
"patch/*",
"bin/generate-dart-sdk.sh",
]
outputs = ["../mobile/openapi/lib/"]
outputs = ["../mobile/generated/openapi/"]
run = "bash ./bin/generate-dart-sdk.sh"
[tasks.open-api]

View file

@ -17,7 +17,7 @@ windows-x64 = { asset_pattern = "dcm-windows-release.zip" }
[tasks.codegen]
alias = "codegen"
description = "Generate all codegen artifacts"
depends = ["codegen:dart", "codegen:drift:schema", "codegen:pigeon", "codegen:translation"]
depends = ["//:open-api-dart", "codegen:dart", "codegen:drift:schema", "codegen:pigeon", "codegen:translation"]
[tasks."codegen:dart"]
description = "Execute build_runner to auto-generate dart code"
@ -32,12 +32,14 @@ run = [
"dart run build_runner build --delete-conflicting-outputs",
"dart format lib/routing/router.gr.dart",
]
depends = ["//:open-api-dart"]
[tasks."codegen:drift:schema"]
description = "Generate Drift migration schema test code"
sources = ["drift_schemas/main/*.json"]
outputs = { auto = true }
run = "dart run drift_dev schema generate --data-classes --companions drift_schemas/main/ test/drift/main/generated/"
depends = ["//:open-api-dart"]
[tasks."codegen:watch"]
alias = "watch"
@ -51,6 +53,7 @@ run = [
"ls pigeon/*.dart | xargs -n1 -P4 -I{} dart run pigeon --input {}",
"dart format lib/platform/",
]
depends = ["//:open-api-dart"]
[tasks."codegen:translation"]
alias = "translation"
@ -123,6 +126,7 @@ run = [
"dart run easy_localization:generate -S ../i18n",
"dart format lib/generated/codegen_loader.g.dart",
]
depends = ["//:open-api-dart"]
[tasks."i18n:keys"]
description = "Generate i18n keys"