finalize migration (yay)
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
Write-Host "Generating initial Apidoc"
|
||||
pnpx tsoa spec-and-routes
|
||||
Write-Host "Generating initial Frontend API client"
|
||||
pnpx oazapfts --optimistic --useEnumType packages/frontend/src/app/generated-api/swagger.json packages/frontend/src/app/generated-api/api.ts
|
||||
|
||||
Write-Host "Starting watchers for API doc generation and Frontend client generation"
|
||||
wt @(
|
||||
"-w",
|
||||
"0",
|
||||
"-d",
|
||||
".",
|
||||
"pwsh",
|
||||
"-c",
|
||||
"pnpm",
|
||||
"nodemon",
|
||||
"--watch",
|
||||
"./packages/api/src/controllers",
|
||||
"--watch",
|
||||
"./packages/api/src/dtos",
|
||||
"-e",
|
||||
"ts",
|
||||
"-x",
|
||||
"pnpm",
|
||||
"run",
|
||||
"generate",
|
||||
";",
|
||||
|
||||
"sp",
|
||||
"--title",
|
||||
"API Doc Gen",
|
||||
"-d",
|
||||
".",
|
||||
"pwsh",
|
||||
"-c",
|
||||
"pnpm",
|
||||
"nodemon",
|
||||
"--watch",
|
||||
"./packages/frontend/src/app/generated-api/swagger.json",
|
||||
"-e",
|
||||
"json",
|
||||
"-x",
|
||||
"pnpm",
|
||||
"--filter",
|
||||
"frontend",
|
||||
"run",
|
||||
"generate"
|
||||
)
|
||||
Exit 0
|
||||
Reference in New Issue
Block a user