finalize migration (yay)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Set-Location -Path $PSScriptRoot/../packages/frontend
|
||||
pnpm ng serve
|
||||
@@ -0,0 +1,6 @@
|
||||
Set-Location -Path $PSScriptRoot/../packages/api
|
||||
$env:TKD_DB_HOST="localhost"
|
||||
$env:TKD_DB_USER="webapi"
|
||||
$env:TKD_DB_PASSWORD="devpassword"
|
||||
$env:TKD_COOKIE_SECRET="devsecret"
|
||||
pnpx tsx --watch --tsconfig .\tsconfig.json .\src\index.ts
|
||||
@@ -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
|
||||
@@ -0,0 +1,44 @@
|
||||
$ErrorActionPreference = "Inquire"
|
||||
|
||||
wt @(
|
||||
"nt",
|
||||
"-d",
|
||||
".",
|
||||
"--title",
|
||||
"Angular",
|
||||
"pwsh",
|
||||
"-NoExit",
|
||||
"-File",
|
||||
".\scripts\angular.ps1",
|
||||
";",
|
||||
|
||||
"nt",
|
||||
"-d",
|
||||
".",
|
||||
"--title",
|
||||
"API TS",
|
||||
"pwsh",
|
||||
"-NoExit",
|
||||
"-File",
|
||||
".\scripts\api-ts.ps1",
|
||||
";",
|
||||
|
||||
"nt",
|
||||
"-d",
|
||||
".",
|
||||
"--title",
|
||||
"Docker",
|
||||
"pwsh",
|
||||
"-NoExit",
|
||||
"-File",
|
||||
".\scripts\docker.ps1",
|
||||
";",
|
||||
|
||||
"nt",
|
||||
"-d",
|
||||
".",
|
||||
"--title",
|
||||
"API Gen",
|
||||
"pwsh",
|
||||
"-File",
|
||||
".\scripts\apigen.ps1")
|
||||
@@ -0,0 +1,2 @@
|
||||
Set-Location -Path $PSScriptRoot\..\packages\api\dev\
|
||||
docker compose up
|
||||
Reference in New Issue
Block a user