新增管理师移动端前端模块
This commit is contained in:
@@ -66,7 +66,7 @@ function Copy-Directory {
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $Destination | Out-Null
|
||||
Copy-Item -LiteralPath $Source -Destination $Destination -Recurse -Force
|
||||
Copy-Item -Path (Join-Path $Source "*") -Destination $Destination -Recurse -Force
|
||||
}
|
||||
|
||||
function Copy-RequiredFile {
|
||||
@@ -110,13 +110,23 @@ if (-not (Test-Path -LiteralPath (Join-Path $frontendRoot "node_modules"))) {
|
||||
}
|
||||
Invoke-Native "npm" @("run", "build") $frontendRoot
|
||||
|
||||
Write-Step "构建 FM-Front"
|
||||
$managerMobileRoot = Join-Path $repoRoot "FM-Front"
|
||||
if (-not (Test-Path -LiteralPath (Join-Path $managerMobileRoot "node_modules"))) {
|
||||
Invoke-Native "npm" @("ci") $managerMobileRoot
|
||||
}
|
||||
Invoke-Native "npm" @("run", "build") $managerMobileRoot
|
||||
|
||||
$coreJar = Join-Path $repoRoot "FD-Core\target\FingertipDesigner-Core.jar"
|
||||
$gatewayJar = Join-Path $repoRoot "FD-Gateway\target\FingertipDesigner-Gateway.jar"
|
||||
$frontendDist = Join-Path $frontendRoot "dist"
|
||||
$managerMobileDist = Join-Path $managerMobileRoot "dist"
|
||||
|
||||
Copy-RequiredFile $coreJar (Join-Path $backendDir "FingertipDesigner-Core.jar")
|
||||
Copy-RequiredFile $gatewayJar (Join-Path $backendDir "FingertipDesigner-Gateway.jar")
|
||||
Copy-Directory $frontendDist (Join-Path $frontendDir "dist")
|
||||
Copy-Directory $managerMobileDist (Join-Path $frontendDir "fm-front-dist")
|
||||
Copy-Directory $managerMobileDist (Join-Path $frontendDir "dist\fm-front")
|
||||
Copy-Directory (Join-Path $repoRoot "FD-WeChat-Fronted") (Join-Path $miniProgramDir "FD-WeChat-Fronted")
|
||||
Copy-Directory (Join-Path $repoRoot "FM-Wechat-Fronted") (Join-Path $miniProgramDir "FM-Wechat-Fronted")
|
||||
Copy-RequiredFile $sqlPath (Join-Path $releaseDir "FingertipDesigner.sql")
|
||||
@@ -127,6 +137,8 @@ $manifest = @(
|
||||
"- backend/FingertipDesigner-Core.jar",
|
||||
"- backend/FingertipDesigner-Gateway.jar",
|
||||
"- frontend/dist",
|
||||
"- frontend/dist/fm-front",
|
||||
"- frontend/fm-front-dist",
|
||||
"- miniprograms/FD-WeChat-Fronted",
|
||||
"- miniprograms/FM-Wechat-Fronted",
|
||||
"- FingertipDesigner.sql",
|
||||
@@ -134,7 +146,8 @@ $manifest = @(
|
||||
"Nacos namespace: FingertipDesigner",
|
||||
"Database initialized by: scripts/sql/init/FingertipDesigner.sql",
|
||||
"Database name: FingertipDesigner",
|
||||
"Manager mini program API: https://yunail.art/api/admin"
|
||||
"Manager mini program API: https://yunail.art/api/admin",
|
||||
"Manager mobile web: https://yunail.art/fm-front/"
|
||||
)
|
||||
$manifest | Set-Content -Encoding UTF8 (Join-Path $releaseDir "README.md")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user