mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-29 23:48:52 +00:00
chore(build): enhance proto caching and install binary plugins for improved performance, remove reliance on BSR (#11634)
This commit is contained in:
+23
-3
@@ -63,24 +63,44 @@
|
||||
"generate-proto-docs": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"command": "pnpm generate:proto-docs",
|
||||
"command": "bash -c 'GOOS=$(uname -s | tr \"[:upper:]\" \"[:lower:]\"); GOARCH=$(uname -m); GOARCH=${GOARCH/x86_64/amd64}; GOARCH=${GOARCH/aarch64/arm64}; PATH=\"${PWD}/../../.artifacts/bin/${GOOS}/${GOARCH}:$PATH\" pnpm generate:proto-docs'",
|
||||
"cwd": "apps/docs"
|
||||
},
|
||||
"dependsOn": [
|
||||
"fetch-remote-content"
|
||||
"fetch-remote-content",
|
||||
"install-proto-plugins"
|
||||
],
|
||||
"outputs": [
|
||||
"{projectRoot}/openapi"
|
||||
],
|
||||
"cache": true,
|
||||
"inputs": [
|
||||
"default",
|
||||
"{projectRoot}/scripts/generate-proto-docs.mjs",
|
||||
"{projectRoot}/buf.gen.yaml",
|
||||
"{workspaceRoot}/proto/**/*",
|
||||
{
|
||||
"dependentTasksOutputFiles": "apps/docs/content/versions.json"
|
||||
},
|
||||
{
|
||||
"dependentTasksOutputFiles": ".artifacts/bin/*/*/protoc-gen-connect-openapi"
|
||||
}
|
||||
]
|
||||
},
|
||||
"install-proto-plugins": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"command": "bash ./apps/docs/scripts/install-proto-plugins.sh"
|
||||
},
|
||||
"cache": true,
|
||||
"inputs": [
|
||||
{ "runtime": "uname -s" },
|
||||
{ "runtime": "uname -m" },
|
||||
"{projectRoot}/scripts/install-proto-plugins.sh"
|
||||
],
|
||||
"outputs": [
|
||||
"{workspaceRoot}/.artifacts/bin/*/*/protoc-gen-connect-openapi"
|
||||
]
|
||||
},
|
||||
"generate-api-reference": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
|
||||
Reference in New Issue
Block a user