Endjin.RecommendedPractices.Build.psm1

Set-Alias Endjin.RecommendedPractices.Build.tasks $PSScriptRoot/import-tasks.ps1

# find all the functions that make-up this module
$functions = Get-ChildItem -Recurse $PSScriptRoot/functions -Include *.ps1 | `
                                Where-Object { $_ -notmatch ".Tests.ps1" }
                    
# dot source the individual scripts that make-up this module
foreach ($function in ($functions)) { . $function.FullName }

# export the non-private functions (by convention, private function scripts must begin with an '_' character)
Export-ModuleMember -Function ( $functions | 
                                    ForEach-Object { (Get-Item $_).BaseName } | 
                                        Where-Object { -not $_.StartsWith("_") }
                            ) `
                    -Alias Endjin.RecommendedPractices.Build.tasks

# Define globals/constants
$InvokeBuildModuleVersion = "5.10.3"