Invoke-Traneleon.ps1
<#
.SYNOPSIS Transpile, minify and bundle all project files. .PARAMETER ConfigFile The absolute or relative path of the config file. .PARAMETER EnableWatcher Determines whether to monitor the working directory for changes. #> function Invoke-Traneleon( [Parameter(Mandatory)][Alias('c', 'config')][String]$ConfigFile, [Parameter()][Alias('w', 'watch')][switch]$EnableWatcher) { $name0 = ''; $value0 = ''; if ($ConfigFile) { $name0 = '-ConfigFile'; $value0 = $ConfigFile.ToString(); } $name1 = ''; $value1 = ''; if ($EnableWatcher) { $name1 = '-EnableWatcher'; $value1 = ''; } $exe = "$PSScriptRoot\bin\Acklann.Traneleon.CLI.dll"; return (&dotnet $exe build $name0 $value0 $name1 $value1); } |