Add windows running
This commit is contained in:
parent
d97ffc9837
commit
a99e716ad2
3 changed files with 377 additions and 0 deletions
24
web/run.ps1
Normal file
24
web/run.ps1
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$Script = "dev",
|
||||
[string[]]$Arguments
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Push-Location -LiteralPath $PSScriptRoot
|
||||
try {
|
||||
$pnpmArgs = @("run", $Script)
|
||||
if ($Arguments) {
|
||||
$pnpmArgs += "--"
|
||||
$pnpmArgs += $Arguments
|
||||
}
|
||||
|
||||
pnpm @pnpmArgs
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue