Skip to content

Commit

Permalink
Merge pull request #19 from theohbrothers/enhancement/development-add…
Browse files Browse the repository at this point in the history
…-.vscode-tasks.json

Enhancement (development): Add .vscode/tasks.json
  • Loading branch information
leojonathanoh committed May 22, 2021
2 parents 17b56e2 + 949dd5e commit b5e0fec
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"inputs": [
{
"id": "NUGET_API_KEY",
"description": "NUGET_API_KEY?",
"type": "promptString",
"default": "",
},
{
"id": "MODULE_VERSION",
"description": "MODULE_VERSION?",
"type": "promptString",
"default": "",
},
],
"tasks": [
{
"label": "Test (pwsh)",
"type": "shell",
"command": "pwsh -Command test/test.ps1",
"group": {
"isDefault": true,
"kind": "test"
}
},
{
"label": "Test (powershell)",
"type": "shell",
"command": "powershell -Command test/test.ps1",
"group": {
"isDefault": true,
"kind": "test"
}
},
{
"label": "Build: Generate module manifest",
"type": "shell",
"command": "MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/module/Generate-ModuleManifest.ps1 -DefinitionFile build/definitions/modulemanifest/definition.ps1 -Path src/Position-ExplorerWindow/Position-ExplorerWindow.psd1'",
"group": {
"isDefault": true,
"kind": "build"
}
},
{
"label": "Publish module (dry run)",
"type": "shell",
"command": "NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/Position-ExplorerWindow/Position-ExplorerWindow.psd1 -Repository PSGallery -DryRun'",
"group": "build"
},
{
"label": "Publish module",
"type": "shell",
"command": "NUGET_API_KEY=${input:NUGET_API_KEY} MODULE_VERSION=${input:MODULE_VERSION} pwsh -Command 'build/PSModulePublisher/src/Invoke-Publish.ps1 -ModuleManifestPath src/Position-ExplorerWindow/Position-ExplorerWindow.psd1 -Repository PSGallery'",
"group": "build"
},

]
}

0 comments on commit b5e0fec

Please sign in to comment.