Invoke-Traneleon.ps1
<#
.SYNOPSIS Transpile, minify and bundle all project files. .PARAMETER ConfigFile The absolute or relative path of the config file. .PARAMETER Level #> function Invoke-Traneleon( [Parameter(Mandatory)][Alias('c', 'config')][String]$ConfigFile, [Parameter()][Alias('l', 'log')][ValidatePattern('(?i)(^Debug$|^Info$|^Warn$|^Error$|\d+)')][string]$Level) { $name0 = ''; $value0 = ''; if ($ConfigFile) { $name0 = '-ConfigFile'; $value0 = $ConfigFile.ToString(); } $name1 = ''; $value1 = ''; if ($Level) { $name1 = '-Level'; $value1 = $Level.ToString(); } $exe = "$PSScriptRoot\bin\Acklann.Traneleon.CLI.dll"; return (&dotnet $exe build $name0 $value0 $name1 $value1); } |