Skip to content

Instantly share code, notes, and snippets.

@rodmhgl
Last active May 23, 2017 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodmhgl/97b3f1a34d7454dd4bc68c7b7d5cd179 to your computer and use it in GitHub Desktop.
Save rodmhgl/97b3f1a34d7454dd4bc68c7b7d5cd179 to your computer and use it in GitHub Desktop.
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