refactor(M08-D-R1): 后台改用权限路由与懒加载
This commit is contained in:
@@ -1,28 +1,59 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
function Assert-NativeSuccess([string]$Step) {
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "$Step failed with exit code $LASTEXITCODE."
|
||||
}
|
||||
}
|
||||
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-workspace.ps1
|
||||
Assert-NativeSuccess "check-workspace"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-reference.ps1
|
||||
Assert-NativeSuccess "check-reference"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-line-endings.ps1
|
||||
Assert-NativeSuccess "check-line-endings"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-large-files.ps1
|
||||
Assert-NativeSuccess "check-large-files"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-repo-completeness.ps1
|
||||
Assert-NativeSuccess "check-repo-completeness"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-release-manifest.ps1
|
||||
Assert-NativeSuccess "check-release-manifest"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-status-docs.ps1
|
||||
Assert-NativeSuccess "check-status-docs"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-readme-config.ps1
|
||||
Assert-NativeSuccess "check-readme-config"
|
||||
& powershell -ExecutionPolicy Bypass -File scripts/dev/windows/check-backend.ps1
|
||||
Assert-NativeSuccess "check-backend"
|
||||
node scripts/check-admin-m08-b.mjs
|
||||
Assert-NativeSuccess "check-admin-m08-b"
|
||||
node scripts/check-admin-m08-d.mjs
|
||||
Assert-NativeSuccess "check-admin-m08-d"
|
||||
node scripts/check-admin-m08-d-r1.mjs --source-only
|
||||
Assert-NativeSuccess "check-admin-m08-d-r1 source"
|
||||
node scripts/check-miniapp-m08-c.mjs
|
||||
Assert-NativeSuccess "check-miniapp-m08-c"
|
||||
|
||||
if (Test-Path "admin/package.json") {
|
||||
Push-Location admin
|
||||
npm run build
|
||||
Pop-Location
|
||||
try {
|
||||
npm run build
|
||||
Assert-NativeSuccess "admin build"
|
||||
npm test
|
||||
Assert-NativeSuccess "admin test"
|
||||
node ../scripts/check-admin-m08-d-r1.mjs --dist-only
|
||||
Assert-NativeSuccess "check-admin-m08-d-r1 dist"
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
if (Test-Path "package.json") {
|
||||
npm run lint --if-present
|
||||
Assert-NativeSuccess "root lint"
|
||||
npm test --if-present
|
||||
Assert-NativeSuccess "root test"
|
||||
npm run build --if-present
|
||||
Assert-NativeSuccess "root build"
|
||||
}
|
||||
|
||||
Write-Host "PASS: M00 local checks completed."
|
||||
|
||||
Reference in New Issue
Block a user