From 9f60ec849e04e5f1bcae57cbfa518b8d2631f545 Mon Sep 17 00:00:00 2001 From: Erol Arkat Date: Fri, 24 Jul 2020 10:30:24 +0300 Subject: [PATCH] Reduce build-all.ps1 --- build/build-all.ps1 | 6 ++-- build/common.ps1 | 70 +++++++++++++++++++++++++++++---------------- 2 files changed, 50 insertions(+), 26 deletions(-) diff --git a/build/build-all.ps1 b/build/build-all.ps1 index ffaffa67a3..5223b9e8c6 100644 --- a/build/build-all.ps1 +++ b/build/build-all.ps1 @@ -1,6 +1,8 @@ -. ".\common.ps1" +$dev = $args[0] -# Build all solutions +. ".\common.ps1" $dev + +# Build all solutions foreach ($solutionPath in $solutionPaths) { $solutionAbsPath = (Join-Path $rootFolder $solutionPath) diff --git a/build/common.ps1 b/build/common.ps1 index f3ade1f242..ccb124a486 100644 --- a/build/common.ps1 +++ b/build/common.ps1 @@ -1,27 +1,49 @@ -# COMMON PATHS +$dev = $args[0] -$rootFolder = (Get-Item -Path "./" -Verbose).FullName +# COMMON PATHS -# List of solutions +$rootFolder = (Get-Item -Path "./" -Verbose).FullName -$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", - - "../modules/client-simulation", - "../modules/virtual-file-explorer", - "../modules/docs", - "../modules/blogging", - "../templates/module/aspnet-core", - "../templates/app/aspnet-core", - "../abp_io/AbpIoLocalization" -) \ No newline at end of file +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 = ( + "../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" + ) +}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", + + "../modules/client-simulation", + "../modules/virtual-file-explorer", + "../modules/docs", + "../modules/blogging", + "../templates/module/aspnet-core", + "../templates/app/aspnet-core", + "../abp_io/AbpIoLocalization" + ) +}