PlannerOne.Deployment.psm1

$global:P1SrvExe = "PlannerOneService.exe"
$global:IISRootPath = "C:\inetpub\wwwroot"
$global:SourceURL = "https://www.myget.org/F/plannerone/auth/{0}/api/v2"
$global:P1SrvPackage = "PlannerOne.Server"
$global:P1WebPackage = "PlannerOne.WebApp"
$global:TenantPrefix = "PlannerOne"
$global:DefaultWebPort = [int] 8090
$global:VerboseLevel = 0

# Write-Output "Getting functions from $PSScriptRoot"
#Get public and private function definition files.
$Public  = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue )
$Private = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -ErrorAction SilentlyContinue )

#Dot source the files
Foreach($import in @($Public + $Private))
{
    Try
    {
        # Write-Output "Import"$import.fullname
        
        . $import.fullname
    }
    Catch
    {
        Write-Error -Message "Failed to import function $($import.fullname): $_"
    }
}

# Here I might...
    # Read in or create an initial config file and variable
    # Export Public functions ($Public.BaseName) for WIP modules
    # Set variables visible to the module and its functions only

Export-ModuleMember -Function $Public.Basename