$ErrorActionPreference = "Stop"

$Root = Split-Path -Parent $MyInvocation.MyCommand.Path
$Web = Join-Path $Root "web"

Push-Location $Web
try {
    if (!(Test-Path (Join-Path $Web "node_modules"))) {
        npm install
    }
    npm run dev
}
finally {
    Pop-Location
}

