.vscode/tasks.json
{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "windows": { "options": { "shell": { "executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ] } } }, "linux": { "options": { "shell": { "executable": "/usr/bin/pwsh", "args": [ "-NoProfile", "-Command" ] } } }, "osx": { "options": { "shell": { "executable": "/usr/local/bin/pwsh", "args": [ "-NoProfile", "-Command" ] } } }, "problemMatcher": { "owner": "custom", "fileLocation": [ "absolute" ], "pattern": [ { "regexp": "At (.*\\.ps1):(\\d*) char:(\\d*)(.*)", "file": 1, "line": 2, "column": 3 }, { "regexp": "\\+.*" }, { "regexp": "\\+.*" }, { "regexp": "(.+)", "message": 1 } ] }, "tasks": [ { "label": "Scripts: Publish-Module", "command": "Publish-Module -Name ${workspaceRoot}\\PSDataKit.psd1 -NuGetApiKey ${config:powershellgallery.token}", "presentation": { "reveal": "always", "panel": "dedicated", "clear": true, "focus": true }, "group": "build", "type": "shell", "problemMatcher": [] }, { "label": "Run Tests", "command": "Import-Module Pester; Invoke-Pester -Script ${workspaceRoot}\\Tests\\PSDataKit.Tests.ps1", "presentation": { "reveal": "always", "panel": "dedicated", "clear": true, "focus": true }, "group": "test", "type": "shell", "problemMatcher": [] } ] } |