From b572f2ca58dde2741fb31543d95b27259bb13670 Mon Sep 17 00:00:00 2001 From: sheffey <57262511+SheffeyG@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:38:46 +0800 Subject: [PATCH] chore(tasks): exclude sync folder `.pnpm-store` commit 332d5887725efc97bcb89ab89c9cbab0d1bec670 Author: sheffey <57262511+SheffeyG@users.noreply.github.com> Date: Tue Oct 1 23:40:23 2024 +0800 chore(tasks): exclude sync pnpm store folder --- .vscode/tasks.json | 64 +++++++++++++++------------------------------- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3dcdacd..a13a106 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,18 +1,9 @@ { "version": "2.0.0", "tasks": [ - // OTHER - { - "label": "checkforsettings", - "type": "shell", - "group": "none", - "detail": "Check that settings.json has been created", - "command": "bash -c ${workspaceFolder}/.vscode/config.sh", - "problemMatcher": [] - }, // BUILD { - "label": "pnpmsetup", + "label": "SetupPNPM", "type": "shell", "group": "build", "detail": "Setup pnpm", @@ -20,7 +11,7 @@ "problemMatcher": [] }, { - "label": "updatefrontendlib", + "label": "UpdateDFL", "type": "shell", "group": "build", "detail": "Update @decky/ui", @@ -28,7 +19,7 @@ "problemMatcher": [] }, { - "label": "build", + "label": "Build", "type": "npm", "group": "build", "detail": "rollup -c", @@ -36,68 +27,55 @@ "path": "", "problemMatcher": [] }, + // DEPLOY { - "label": "buildall", - "group": "build", - "detail": "Build decky-plugin-template", - "dependsOrder": "sequence", - "dependsOn": [ - "pnpmsetup", - "build" - ], + "label": "CheckSettings", + "type": "shell", + "group": "none", + "detail": "Check that settings.json has been created", + "command": "bash -c ${workspaceFolder}/.vscode/config.sh", "problemMatcher": [] }, - // DEPLOY { - "label": "createfolders", + "label": "CreateFolders", "detail": "Create plugins folder in expected directory", "type": "shell", "group": "none", "dependsOn": [ - "checkforsettings" + "CheckSettings" ], "command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'mkdir -p ${config:deckdir}/homebrew/pluginloader && mkdir -p ${config:deckdir}/homebrew/plugins'", "problemMatcher": [] }, { - "label": "deploy", + "label": "Deploy", "detail": "Deploy dev plugin to deck", "type": "shell", "group": "none", "dependsOn": [ - "createfolders", - "chmodfolders" + "CreateFolders", ], - "command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='src/' --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}", + "command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.pnpm-store/' --exclude='node_modules/' --exclude='pnpm-lock.yaml' --exclude='src/' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}", "problemMatcher": [] }, { - "label": "chmodfolders", - "detail": "chmods folders to prevent perms issues", + "label": "ChmodFolders", + "detail": "Chmods folders to prevent perms issues", "type": "shell", "group": "none", "command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chmod -R ug+rw ${config:deckdir}/homebrew/'", "problemMatcher": [] }, - { - "label": "deployall", - "dependsOrder": "sequence", - "group": "none", - "dependsOn": [ - "deploy", - "chmodfolders" - ], - "problemMatcher": [] - }, // ALL-IN-ONE { - "label": "allinone", - "detail": "Build and deploy", + "label": "ALL-IN-ONE", + "detail": "Build and deploy then chmod the folders", "dependsOrder": "sequence", "group": "test", "dependsOn": [ - "buildall", - "deployall" + "Build", + "Deploy", + "ChmodFolders" ], "problemMatcher": [] }