-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0280ce
commit d0d15bf
Showing
25 changed files
with
784 additions
and
663 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,111 @@ | ||
// Available variables which can be used inside of strings. | ||
// ${workspaceRoot}: the root folder of the team | ||
// ${file}: the current opened file | ||
// ${relativeFile}: the current opened file relative to workspaceRoot | ||
// ${fileBasename}: the current opened file's basename | ||
// ${fileDirname}: the current opened file's dirname | ||
// ${fileExtname}: the current opened file's extension | ||
// ${cwd}: the current working directory of the spawned process | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
|
||
// Start PowerShell | ||
"windows": { | ||
"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe", | ||
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ] | ||
}, | ||
"powershellcore-windows" : { | ||
"command" :"${env:programfiles}/PowerShell/*/pwsh.exe", | ||
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ] | ||
|
||
}, | ||
"powershellcore-linux": { | ||
"command": "/usr/bin/pwsh", | ||
"args": [ "-NoProfile" ] | ||
}, | ||
"powershellcore-osx": { | ||
"command": "/usr/local/bin/pwsh", | ||
"args": [ "-NoProfile" ] | ||
}, | ||
|
||
// Associate with test task runner | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"taskName": "Test", | ||
"suppressTaskName": true, | ||
"isTestCommand": true, | ||
"args": [ | ||
"Write-Host 'Invoking Pester...'; $ProgressPreference = 'SilentlyContinue'; Invoke-Pester -Script test -PesterOption @{IncludeVSCodeMarker=$true};", | ||
"Invoke-Command { Write-Host 'Completed Test task in task runner.' }" | ||
], | ||
"problemMatcher": "$pester" | ||
"label": "Pester Test", | ||
"type": "shell", | ||
"command": "Get-Module Pester | Remove-Module;import-module -FullyQualifiedName @{ModuleName='Pester';RequiredVersion='4.10.1'};Invoke-Pester -Script .\\tests\\*test*.ps1 -PesterOption @{IncludeVSCodeMarker=$true}", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Build markdown help files", | ||
"type": "shell", | ||
"command": "Import-Module $pwd\\*.psd1 -force;$module = Split-Path $pwd -leaf;New-MarkdownHelp -module $module -output $pwd\\docs -force", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Add markdown help file", | ||
"type": "shell", | ||
"command": "Import-Module $pwd\\*.psd1 -force;$module = Split-Path $pwd -leaf;$cmd = Read-Host 'What command needs help?';New-MarkdownHelp -command $cmd -output $pwd\\docs -force;code $pwd\\docs\\$cmd.md", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Update markdown help file", | ||
"type": "shell", | ||
"command": "Import-Module $pwd\\*.psd1 -force;$module = Split-Path $pwd -leaf;$cmd = Read-Host 'What command needs UPDATED help?';Update-MarkdownHelp -path $pwd\\docs\\$cmd.md -force;code $pwd\\docs\\$cmd.md", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Build PowerShell module external help", | ||
"type": "shell", | ||
"command": "c:\\scripts\\build-externalhelp.ps1", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Push release to GitHub WHATIF", | ||
"type": "shell", | ||
"command": "c:\\scripts\\GitReleasePush.ps1 -whatif", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Push PREVIEW release to GitHub", | ||
"type": "shell", | ||
"command": "c:\\scripts\\GitReleasePush.ps1 -PREVIEW", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Push release to GitHub", | ||
"type": "shell", | ||
"command": "c:\\scripts\\GitReleasePush.ps1", | ||
"options": { | ||
"shell": { | ||
"executable": "powershell.exe", | ||
"args": [ | ||
"-noprofile" | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
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
Oops, something went wrong.