Skip to content

Commit

Permalink
chore(tasks): exclude sync folder .pnpm-store
Browse files Browse the repository at this point in the history
commit 332d5887725efc97bcb89ab89c9cbab0d1bec670
Author: sheffey <[email protected]>
Date:   Tue Oct 1 23:40:23 2024 +0800

    chore(tasks): exclude sync pnpm store folder
  • Loading branch information
SheffeyG committed Oct 3, 2024
1 parent de7b26b commit b572f2c
Showing 1 changed file with 21 additions and 43 deletions.
64 changes: 21 additions & 43 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,103 +1,81 @@
{
"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",
"command": "pnpm i",
"problemMatcher": []
},
{
"label": "updatefrontendlib",
"label": "UpdateDFL",
"type": "shell",
"group": "build",
"detail": "Update @decky/ui",
"command": "pnpm update @decky/ui --latest",
"problemMatcher": []
},
{
"label": "build",
"label": "Build",
"type": "npm",
"group": "build",
"detail": "rollup -c",
"script": "build",
"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": []
}
Expand Down

0 comments on commit b572f2c

Please sign in to comment.