启动开发服务器.ps1 469 B

12345678910111213141516
  1. # DRG 前端开发服务器启动脚本
  2. Write-Host "正在启动 DRG 前端开发服务器..." -ForegroundColor Green
  3. Write-Host ""
  4. $frontendPath = Split-Path -Parent $MyInvocation.MyCommand.Path
  5. Set-Location $frontendPath
  6. Write-Host "当前目录: $frontendPath" -ForegroundColor Cyan
  7. Write-Host ""
  8. # 启动开发服务器
  9. npm run dev
  10. Write-Host ""
  11. Write-Host "按任意键退出..." -ForegroundColor Yellow
  12. $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")