私が欲しいのは、psakeを使用して必要なビルドプロセスを実行するダブルクリックできる1つのファイルです。
私はpsakeとPowerShellを初めて使用するので、優しくしてください:-)。
私が今持っているのは3つのファイルです:
ファイル1:Build.bat
PowerShell -ExecutionPolicy Unrestricted -File .\Build.ps1 %1
ファイル2:Build.ps1
Import-Module .\psake.psm1
Invoke-psake .\BuildTasks.ps1 $args
ファイル3:BuildTasks.ps1
task default -depends Verify, Joe
task Verify {
write-host "hello from Verify!"
}
task Joe {
write-host "hello from Joe"
}
Build.ps1とBuildTasks.ps1を1つのファイルにマージする方法はありますか?