12 lines
400 B
PowerShell
12 lines
400 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$manifest = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'manifest.json') | ConvertFrom-Json
|
|
$entryPath = Join-Path $root 'index.html'
|
|
|
|
if ($manifest.vueVersion -eq '3' -and -not (Test-Path $entryPath)) {
|
|
throw 'Vue 3 uni-app projects require index.html at the project root.'
|
|
}
|
|
|
|
Write-Output 'PASS Vue 3 entry contract'
|