Last active
May 23, 2017 21:55
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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