Skip to content

Commit 3e5553c

Browse files
Merge pull request #148 from theohbrothers/enhancement/development-standardize-vscode-build-tasks-3
Enhancement (development): Standardize vscode build tasks
2 parents fcbcf9e + 32e0429 commit 3e5553c

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.vscode/tasks.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,24 @@
2828
"type": "pickString",
2929
"options": [
3030
"true",
31-
"false",
31+
"false"
3232
],
3333
"default": "true"
34-
},
34+
}
3535
],
3636
"tasks": [
37+
{
38+
"label": "Build, Test, Publish module (pwsh)",
39+
"type": "shell",
40+
"command": "NUGET_API_KEY='${input:NUGET_API_KEY}' MODULE_VERSION='${input:MODULE_VERSION}' pwsh -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; Import-Module \"./src/${workspaceFolderBasename}/${workspaceFolderBasename}.psm1\" -Force; Invoke-PSModulePublisher -Repository \"${input:Repository}\" -DryRun:$([System.Convert]::ToBoolean(\"${input:DryRun}\"))'",
41+
"group": "build"
42+
},
43+
{
44+
"label": "Build, Test, Publish module (powershell)",
45+
"type": "shell",
46+
"command": "NUGET_API_KEY='${input:NUGET_API_KEY}' MODULE_VERSION='${input:MODULE_VERSION}' powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; Import-Module \"./src/${workspaceFolderBasename}/${workspaceFolderBasename}.psm1\" -Force; Invoke-PSModulePublisher -Repository \"${input:Repository}\" -DryRun:$([System.Convert]::ToBoolean(\"${input:DryRun}\"))'",
47+
"group": "build"
48+
},
3749
{
3850
"label": "Build module (pwsh)",
3951
"type": "shell",
@@ -69,6 +81,6 @@
6981
"type": "shell",
7082
"command": "NUGET_API_KEY='${input:NUGET_API_KEY}' MODULE_VERSION='${input:MODULE_VERSION}' powershell -NoLogo -NonInteractive -NoProfile -Command '$VerbosePreference = \"Continue\"; Import-Module \"./src/${workspaceFolderBasename}/${workspaceFolderBasename}.psm1\" -Force; Invoke-Publish -Repository \"${input:Repository}\" -DryRun:$([System.Convert]::ToBoolean(\"${input:DryRun}\"))'",
7183
"group": "build"
72-
},
84+
}
7385
]
7486
}

0 commit comments

Comments
 (0)