Ressources/FRPSUGModuleTemplate/vscode/tasks_CICD.json
{
"version": "2.0.0", "windows": { "command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe", "args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-command" ] }, "linux": { "command": "/usr/bin/pwsh", "args": [ "-NoProfile" ] }, "osx": { "command": "/usr/local/bin/pwsh", "args": [ "-NoProfile" ] }, "type": "shell", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "tasks": [ { "label": "AllPesterTest", "type": "shell", "group": "test", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": true, "clear": true }, "command": "Write-Host 'Invoking Pester...'; $ProgressPreference = 'SilentlyContinue'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};Invoke-Command { Write-Host 'Completed Test task in task runner.' }", "problemMatcher": "$pester" }, { "label": "Clean", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Clean File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Clean.ps1", "problemMatcher": [] }, { "label": "Compile", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Compile File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Compile.ps1", "problemMatcher": [] }, { "label": "Diagram", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Diagram File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Diagram.ps1", "problemMatcher": [] }, { "label": "Install", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Install File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Install.ps1", "problemMatcher": [] }, { "label": "Tests", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Tests File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Tests.ps1", "problemMatcher": [] }, { "label": "Docs", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Docs File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Docs.ps1", "problemMatcher": [] }, { "label": "Deploy", "type": "shell", "group": "build", "presentation": { "echo": false, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true }, "command": "Write-Host 'Invoking CI/CD Deploy File on ${workspaceFolderBasename} module ...'; ${workspaceFolder}/CI/Deploy.ps1", "problemMatcher": [] } ] } |