migrate from github
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#Requires -Version 5.1
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
||||
$DeployDir = Resolve-Path "$ScriptDir\.."
|
||||
|
||||
if (Get-Command buf -ErrorAction SilentlyContinue) {
|
||||
Write-Host "buf found locally, generating directly..."
|
||||
Push-Location "$DeployDir\..\proto"
|
||||
buf generate --template buf.gen.backend.yaml
|
||||
buf generate --template buf.gen.collab-go.yaml
|
||||
buf generate --template buf.gen.frontend.yaml
|
||||
buf generate --template buf.gen.node.yaml
|
||||
Pop-Location
|
||||
Write-Host "Proto generation complete."
|
||||
} else {
|
||||
Write-Host "buf not found locally, using proto-gen container..."
|
||||
docker compose -f "$DeployDir\docker-compose.dev.yml" run --rm proto-gen
|
||||
}
|
||||
Reference in New Issue
Block a user