From e001950324b160defe609cd170710658e18502b6 Mon Sep 17 00:00:00 2001 From: Erol Arkat Date: Fri, 24 Jul 2020 11:58:27 +0300 Subject: [PATCH] added -f parameter for build-all.ps1 --- build/build-all.ps1 | 6 +++--- build/common.ps1 | 37 +++++++++++++------------------------ 2 files changed, 16 insertions(+), 27 deletions(-) diff --git a/build/build-all.ps1 b/build/build-all.ps1 index 5223b9e8c6..5841b16bb6 100644 --- a/build/build-all.ps1 +++ b/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) { $solutionAbsPath = (Join-Path $rootFolder $solutionPath) diff --git a/build/common.ps1 b/build/common.ps1 index ccb124a486..18019a154e 100644 --- a/build/common.ps1 +++ b/build/common.ps1 @@ -1,16 +1,11 @@ -$dev = $args[0] +$full = $args[0] # COMMON PATHS $rootFolder = (Get-Item -Path "./" -Verbose).FullName -if ($dev -eq "-d") -{ - # List of solutions used only in development mode - Write-host "" - Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow - Write-host "" - $solutionPaths = ( +# List of solutions used only in development mode +$solutionPaths = @( "../framework", "../modules/users", "../modules/permission-management", @@ -23,21 +18,11 @@ if ($dev -eq "-d") "../modules/background-jobs", "../modules/account" ) -}else{ - # List of all solutions - $solutionPaths = ( - "../framework", - "../modules/users", - "../modules/permission-management", - "../modules/setting-management", - "../modules/feature-management", - "../modules/identity", - "../modules/identityserver", - "../modules/tenant-management", - "../modules/audit-logging", - "../modules/background-jobs", - "../modules/account", - + +if ($full -eq "-f") +{ + # List of additional solutions required for full build + $solutionPaths += ( "../modules/client-simulation", "../modules/virtual-file-explorer", "../modules/docs", @@ -45,5 +30,9 @@ if ($dev -eq "-d") "../templates/module/aspnet-core", "../templates/app/aspnet-core", "../abp_io/AbpIoLocalization" - ) + ) +}else{ + Write-host "" + Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow + Write-host "" }