Support "workspace preparation" scripts
I want to support "workspace preparation" scripts. These would be declared under an optional "Prepare" step (which would sit next to "Build" in the config).
It would look something like this:
// ...
"ProjectName": "...",
"Prepare": [
{
"Type": "Custom",
"ScriptPath": "BuildScriptsExtra/SomeScript.ps1",
"RunBefore": [
"Compile",
"Cook",
"Stage"
]
}
],
"Build": {
// ...
}
RunBefore
indicates what steps in the BuildGraph the workspace preparation script should run for, which can be one or more of "Compile", "Cook" or "Stage".