chore: import SiteForge Factory V5 source (baseline)
导入 SiteForge Factory V5 基线源码: - FastAPI + SQLite + Docker Compose(Web + Worker)架构 - 四套商业主题 × 14 页面模板(1.1.0,含历史版本快照) - 四种建站模式骨架 + 迁移审计 + 发布门禁 - 52 项 pytest 测试 - 补全计划主文档 docs/superpowers/plans/ Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
param(
|
||||
[string]$Python = "python"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
& $Python -m pip check
|
||||
if ($LASTEXITCODE -ne 0) { throw "Python dependency check failed" }
|
||||
|
||||
& $Python -m compileall -q app
|
||||
if ($LASTEXITCODE -ne 0) { throw "Python compilation failed" }
|
||||
|
||||
& $Python -m pytest -q --basetemp=.pytest_cache/check-tmp
|
||||
if ($LASTEXITCODE -ne 0) { throw "Pytest failed" }
|
||||
|
||||
if (Get-Command node -ErrorAction SilentlyContinue) {
|
||||
foreach ($file in @("app/static/admin.js", "app/static/editor.js", "app/static/factory-v2.js", "app/static/pro.js")) {
|
||||
& node --check $file
|
||||
if ($LASTEXITCODE -ne 0) { throw "JavaScript syntax check failed: $file" }
|
||||
}
|
||||
} else {
|
||||
Write-Warning "Node.js is unavailable; JavaScript syntax checks were skipped."
|
||||
}
|
||||
|
||||
Write-Host "SiteForge V5 checks passed."
|
||||
Reference in New Issue
Block a user