Skip to content

Instantly share code, notes, and snippets.

@stephaneerard
Last active December 14, 2020 10:19
Show Gist options
  • Select an option

  • Save stephaneerard/3f9f7c927c851dc5f7a25c7048a01a14 to your computer and use it in GitHub Desktop.

Select an option

Save stephaneerard/3f9f7c927c851dc5f7a25c7048a01a14 to your computer and use it in GitHub Desktop.
$npm = @("config-lib", "config-api", "config-cli")
try {
$processes = foreach ($package in $npm) {
Start-Process -FilePath powershell -ArgumentList 'npm run watch' -WorkingDirectory "$psscriptroot\..\src\$package" -nonewwindow
}
$processes | Wait-Process
}
finally {
$processes | Stop-Process
Write-Information "Done."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment