-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from theohbrothers/enhancement/development-add…
…-.vscode-tasks.json Enhancement (development): Add .vscode/tasks.json
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 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 |
---|---|---|
@@ -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" | ||
}, | ||
|
||
] | ||
} |