Skip to content

Instantly share code, notes, and snippets.

@rodmhgl rodmhgl/tasks.json
Last active May 23, 2017

Embed
What would you like to do?
I always end up with that one customer who wants me to email them the PS1 file. I've always hated having to do the manual copy and rename, so let's automate it until they get actual source control.
{
"version": "0.1.0",
"tasks": [
{
"taskName": "build",
"command": "powershell",
"args": [
"-ExecutionPolicy",
"Unrestricted",
"Merge-Script -Script '${file}' -Bundle -OutputPath '${fileDirname}\\out' -OutputType Script;",
"Copy-Item -Path '${fileDirname}\\out\\\\${fileBasename}' -Destination '${fileDirname}\\out\\${fileBasenameNoExtension}.txt' -Force"
],
"isBuildCommand": true,
"showOutput": "silent"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.