Files
37duAutomation/plugins/XQ0001-0100/XQ0052 湖畔储值卡每日导出统计/ui-src/_build.ps1
T
puddy 0749fbf172 feat(xq0052): 台账改用 WPS 维护并新增导出快照,支持只导出/只维护台账(0.4.0)
- 新增 logic/snapshot.py:导出后落快照,台账失败可复用上次导出数据重试,不用重新取数

- 台账只走 WPS 表格(不调 Office),字段提示同步改为关闭 WPS

- 新增 通联扫码统计 支付数据追加 / 流程 两个测试;前端重建(ui 产物 + usePluginUI/style 拆分)
2026-11-10 14:29:27 +08:00

19 lines
744 B
PowerShell

# Build the plugin UI (Vue + Element Plus) into ../ui/.
# Usage (from repo root):
# powershell -ExecutionPolicy Bypass -File "plugins\XQ0001-0100\XQ0052 ...\ui-src\_build.ps1"
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
Push-Location $here
try {
if (-not (Test-Path 'node_modules')) {
npm install --no-audit --no-fund
if ($LASTEXITCODE -ne 0) { throw "npm install failed (exit $LASTEXITCODE)" }
}
node (Join-Path $here 'node_modules\vite\bin\vite.js') build --config (Join-Path $here 'vite.build.config.js')
if ($LASTEXITCODE -ne 0) { throw "vite build failed (exit $LASTEXITCODE)" }
} finally {
Pop-Location
}
Write-Host "output -> $(Join-Path $here '..\ui')"