Browse Source

added -f parameter for build-all.ps1

pull/4882/head
Erol Arkat 6 years ago
parent
commit
e001950324
  1. 6
      build/build-all.ps1
  2. 37
      build/common.ps1

6
build/build-all.ps1

@ -1,8 +1,8 @@
$dev = $args[0] $full = $args[0]
. ".\common.ps1" $dev . ".\common.ps1" $full
# Build all solutions # Build all solutions
foreach ($solutionPath in $solutionPaths) { foreach ($solutionPath in $solutionPaths) {
$solutionAbsPath = (Join-Path $rootFolder $solutionPath) $solutionAbsPath = (Join-Path $rootFolder $solutionPath)

37
build/common.ps1

@ -1,16 +1,11 @@
$dev = $args[0] $full = $args[0]
# COMMON PATHS # COMMON PATHS
$rootFolder = (Get-Item -Path "./" -Verbose).FullName $rootFolder = (Get-Item -Path "./" -Verbose).FullName
if ($dev -eq "-d") # List of solutions used only in development mode
{ $solutionPaths = @(
# List of solutions used only in development mode
Write-host ""
Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow
Write-host ""
$solutionPaths = (
"../framework", "../framework",
"../modules/users", "../modules/users",
"../modules/permission-management", "../modules/permission-management",
@ -23,21 +18,11 @@ if ($dev -eq "-d")
"../modules/background-jobs", "../modules/background-jobs",
"../modules/account" "../modules/account"
) )
}else{
# List of all solutions if ($full -eq "-f")
$solutionPaths = ( {
"../framework", # List of additional solutions required for full build
"../modules/users", $solutionPaths += (
"../modules/permission-management",
"../modules/setting-management",
"../modules/feature-management",
"../modules/identity",
"../modules/identityserver",
"../modules/tenant-management",
"../modules/audit-logging",
"../modules/background-jobs",
"../modules/account",
"../modules/client-simulation", "../modules/client-simulation",
"../modules/virtual-file-explorer", "../modules/virtual-file-explorer",
"../modules/docs", "../modules/docs",
@ -45,5 +30,9 @@ if ($dev -eq "-d")
"../templates/module/aspnet-core", "../templates/module/aspnet-core",
"../templates/app/aspnet-core", "../templates/app/aspnet-core",
"../abp_io/AbpIoLocalization" "../abp_io/AbpIoLocalization"
) )
}else{
Write-host ""
Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow
Write-host ""
} }

Loading…
Cancel
Save