294 lines
8.6 KiB
JSON
294 lines
8.6 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Check version (Whole repository)",
|
|
"detail": "Execute checkver for each manifests ini each folder inside repository.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": ".\\bin\\checkver.ps1",
|
|
"args": [
|
|
"-Recurse",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"group": "test",
|
|
"problemMatcher": [],
|
|
},
|
|
{
|
|
// Default (While opened file, Press CTRL+F9 / CTRL+SHIFT+B)
|
|
"label": "Check and update (Actual)",
|
|
"detail": "Custom version check with auto commit",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": ".\\bin\\checkAndPush.ps1",
|
|
"args": [
|
|
"'${file}'",
|
|
"${input:pickUpdateType}",
|
|
"${input:pickCheckType}",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"reevaluateOnRerun": false,
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true,
|
|
},
|
|
},
|
|
{
|
|
"label": "Test",
|
|
"detail": "Execute Pester tests in repository root directory.",
|
|
"type": "shell",
|
|
"command": ".\\bin\\test.ps1",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"group": "test",
|
|
"problemMatcher": [],
|
|
},
|
|
{
|
|
"label": "Missing Checkver",
|
|
"detail": "Check if manifests have checkver and autoupdate properties.",
|
|
"type": "shell",
|
|
"command": ".\\bin\\missing-checkver.ps1; .\\bin\\missing-checkver.ps1 -dir \"TODO\"",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"group": "test",
|
|
"problemMatcher": [],
|
|
},
|
|
{
|
|
"label": "Push Auto-PR",
|
|
"detail": "Execute checkver and push updated manifests.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": ".\\bin\\auto-pr.ps1",
|
|
"args": [
|
|
"-Push",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": true,
|
|
"clear": false,
|
|
},
|
|
"problemMatcher": [],
|
|
},
|
|
{
|
|
"label": "Checkver Actual",
|
|
"detail": "Check version of currently opened manifest.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": ".\\bin\\checkver.ps1",
|
|
"args": [
|
|
"-App",
|
|
"'${fileBasenameNoExtension}'",
|
|
"-Dir",
|
|
"'${relativeFileDirname}'",
|
|
"-Force",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
},
|
|
},
|
|
{
|
|
"label": "Checkhashes Actual",
|
|
"detail": "Check hashes of currently opened manifest.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": ".\\bin\\checkhashes.ps1",
|
|
"args": [
|
|
"-App",
|
|
"'${fileBasenameNoExtension}'",
|
|
"-Dir",
|
|
"'${relativeFileDirname}'",
|
|
"-Force",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
},
|
|
},
|
|
{
|
|
"label": "Purge Uninstall Actual",
|
|
"detail": "Uninstall currently opened manifest and remove persisted data.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": "scoop",
|
|
"args": [
|
|
"uninstall",
|
|
"'${fileBasenameNoExtension}'",
|
|
"-p",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
},
|
|
},
|
|
{
|
|
"label": "Install Actual",
|
|
"detail": "Install currently opened manifest.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": "scoop",
|
|
"args": [
|
|
"install",
|
|
"'${file}'",
|
|
],
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
},
|
|
},
|
|
{
|
|
"label": "ReInstall Actual",
|
|
"detail": "Uninstall (--purge) and install currently opened manifest.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"dependsOn": [
|
|
"Purge Uninstall Actual",
|
|
"Install Actual",
|
|
],
|
|
"dependsOrder": "sequence",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "silent",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": false,
|
|
},
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
},
|
|
},
|
|
{
|
|
"label": "Force Update Actual",
|
|
"detail": "Update currently opened manifest.",
|
|
"type": "shell",
|
|
"options": {
|
|
"env": {
|
|
"SCOOP_DEBUG": "true",
|
|
},
|
|
},
|
|
"command": "scoop",
|
|
"args": [
|
|
"update",
|
|
"'${fileBasenameNoExtension}'",
|
|
"-f",
|
|
],
|
|
"problemMatcher": [],
|
|
"runOptions": {
|
|
"instanceLimit": 99,
|
|
"reevaluateOnRerun": false,
|
|
},
|
|
},
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "pickUpdateType",
|
|
"description": "Select how manifest should be updated.",
|
|
"type": "pickString",
|
|
"options": [
|
|
"-Update",
|
|
"-ForceUpdate",
|
|
],
|
|
"default": "-Update",
|
|
},
|
|
{
|
|
"id": "pickCheckType",
|
|
"description": "Select what binary should be called. (checkver or checkhashes)",
|
|
"type": "pickString",
|
|
"options": [
|
|
"-Hashes:$false",
|
|
"-Hashes",
|
|
],
|
|
"default": "-Hashes:$false",
|
|
},
|
|
],
|
|
}
|