Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
dx(command): register command to output a test PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Oct 13, 2022
1 parent c7d20c8 commit a1eb741
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions execute.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ Param(
[switch]
$Routes,

[Parameter(ParameterSetName="Server", Position=1)]
[switch]
$MakeTestPDF,

[Parameter(ParameterSetName="PushRepo", Position=0)]
[switch]
$Push,
Expand Down Expand Up @@ -245,6 +249,8 @@ if ($Server) {
& npx cross-env NODE_ENV=production npx ts-node ./server
} elseif ($Routes) {
& npx ts-node ./server/cli/list_routes.ts
} elseif ($MakeTestPDF) {
& npx ts-node ./server/cli/make_test_pdf.ts
} else {
$command = "pwsh ./execute.ps1 -Server -Normal"
& npx nodemon --watch server --watch routes --watch database --watch common_back-end --ext ts --ignore "*.spec.ts" --exec "$command"
Expand Down

0 comments on commit a1eb741

Please sign in to comment.