Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/helpers/Build/Add-ContentFromItem.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

Add-Content -Path $RootModuleFilePath -Force -Value @"
#region - From $relativeFolderPath
Write-Verbose "[`$scriptName] - $relativeFolderPath - Processing folder"
Write-Debug "[`$scriptName] - $relativeFolderPath - Processing folder"

"@

Expand All @@ -52,19 +52,19 @@ Write-Verbose "[`$scriptName] - $relativeFolderPath - Processing folder"

Add-Content -Path $RootModuleFilePath -Force -Value @"
#region - From $relativeFilePath
Write-Verbose "[`$scriptName] - $relativeFilePath - Importing"
Write-Debug "[`$scriptName] - $relativeFilePath - Importing"

"@
Get-Content -Path $file.FullName | Add-Content -Path $RootModuleFilePath -Force
Add-Content -Path $RootModuleFilePath -Value @"

Write-Verbose "[`$scriptName] - $relativeFilePath - Done"
Write-Debug "[`$scriptName] - $relativeFilePath - Done"
#endregion - From $relativeFilePath
"@
}
Add-Content -Path $RootModuleFilePath -Force -Value @"

Write-Verbose "[`$scriptName] - $relativeFolderPath - Done"
Write-Debug "[`$scriptName] - $relativeFolderPath - Done"
#endregion - From $relativeFolderPath

"@
Expand Down
20 changes: 10 additions & 10 deletions scripts/helpers/Build/Build-PSModuleRootModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $ExportableEnums = @(
$ExportableEnums | Foreach-Object { Write-Verbose "Exporting enum '$($_.FullName)'." }
foreach ($Type in $ExportableEnums) {
if ($Type.FullName -in $ExistingTypeAccelerators.Keys) {
Write-Warning "Enum already exists [$($Type.FullName)]. Skipping."
Write-Verbose "Enum already exists [$($Type.FullName)]. Skipping."
} else {
Write-Verbose "Importing enum '$Type'."
$TypeAcceleratorsClass::Add($Type.FullName, $Type)
Expand All @@ -99,7 +99,7 @@ $ExportableClasses = @(
$ExportableClasses | Foreach-Object { Write-Verbose "Exporting class '$($_.FullName)'." }
foreach ($Type in $ExportableClasses) {
if ($Type.FullName -in $ExistingTypeAccelerators.Keys) {
Write-Warning "Class already exists [$($Type.FullName)]. Skipping."
Write-Verbose "Class already exists [$($Type.FullName)]. Skipping."
} else {
Write-Verbose "Importing class '$Type'."
$TypeAcceleratorsClass::Add($Type.FullName, $Type)
Expand Down Expand Up @@ -142,7 +142,7 @@ param()
#region - Module post-header
Add-Content -Path $rootModuleFile -Force -Value @"
`$scriptName = '$ModuleName'
Write-Verbose "[`$scriptName] - Importing module"
Write-Debug "[`$scriptName] - Importing module"

"@
#endregion - Module post-header
Expand All @@ -152,16 +152,16 @@ Write-Verbose "[`$scriptName] - Importing module"

Add-Content -Path $rootModuleFile.FullName -Force -Value @'
#region - Data import
Write-Verbose "[$scriptName] - [data] - Processing folder"
Write-Debug "[$scriptName] - [data] - Processing folder"
$dataFolder = (Join-Path $PSScriptRoot 'data')
Write-Verbose "[$scriptName] - [data] - [$dataFolder]"
Write-Debug "[$scriptName] - [data] - [$dataFolder]"
Get-ChildItem -Path "$dataFolder" -Recurse -Force -Include '*.psd1' -ErrorAction SilentlyContinue | ForEach-Object {
Write-Verbose "[$scriptName] - [data] - [$($_.BaseName)] - Importing"
Write-Debug "[$scriptName] - [data] - [$($_.BaseName)] - Importing"
New-Variable -Name $_.BaseName -Value (Import-PowerShellDataFile -Path $_.FullName) -Force
Write-Verbose "[$scriptName] - [data] - [$($_.BaseName)] - Done"
Write-Debug "[$scriptName] - [data] - [$($_.BaseName)] - Done"
}

Write-Verbose "[$scriptName] - [data] - Done"
Write-Debug "[$scriptName] - [data] - Done"
#endregion - Data import

'@
Expand Down Expand Up @@ -200,13 +200,13 @@ Write-Verbose "[$scriptName] - [data] - Done"

Add-Content -Path $rootModuleFile -Force -Value @"
#region - From $relativePath
Write-Verbose "[`$scriptName] - $relativePath - Importing"
Write-Debug "[`$scriptName] - $relativePath - Importing"

"@
Get-Content -Path $file.FullName | Add-Content -Path $rootModuleFile -Force

Add-Content -Path $rootModuleFile -Force -Value @"
Write-Verbose "[`$scriptName] - $relativePath - Done"
Write-Debug "[`$scriptName] - $relativePath - Done"
#endregion - From $relativePath

"@
Expand Down