diff --git a/.gitignore b/.gitignore index 5d9a753..76f76c5 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ __pycache__/ /.yalc yalc.lock + +.vscode/settings.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e113a47..1742d4b 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -10,29 +10,6 @@ "command": "bash -c ${workspaceFolder}/.vscode/config.sh", "problemMatcher": [] }, - // DEPLOY - { - "label": "createfolders", - "detail": "Create plugins folder in expected directory", - "type": "shell", - "group": "none", - "dependsOn": [ - "checkforsettings" - ], - "command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'mkdir -p ${config:deckdir}/homebrew/dev/pluginloader && mkdir -p ${config:deckdir}/homebrew/dev/plugins'", - "problemMatcher": [] - }, - { - "label": "deploy", - "detail": "Deploy dev plugin to deck", - "type": "shell", - "group": "none", - "dependsOn": [ - "createfolders" - ], - "command": "rsync -azp --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='dist/' --exclude=`src/` --exclude=`assets/` --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/dev/plugins/${workspaceFolderBasename}}", - "problemMatcher": [] - }, // BUILD { "label": "pnpmsetup", @@ -41,7 +18,7 @@ "detail": "Setup pnpm", "command": "pnpm i", "problemMatcher": [] - "${workspaceFolderBasename}" + // "${workspaceFolderBasename}" }, { "label": "updatefrontendlib", @@ -70,6 +47,48 @@ "updatefrontendlib", "build" ] + }, + // DEPLOY + { + "label": "createfolders", + "detail": "Create plugins folder in expected directory", + "type": "shell", + "group": "none", + "dependsOn": [ + "checkforsettings" + ], + "command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'mkdir -p ${config:deckdir}/homebrew/dev/pluginloader && mkdir -p ${config:deckdir}/homebrew/dev/plugins'", + "problemMatcher": [] + }, + { + "label": "deploy", + "detail": "Deploy dev plugin to deck", + "type": "shell", + "group": "none", + "dependsOn": [ + "createfolders" + ], + "command": "rsync -azp --delete --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='dist/' --exclude=`src/` --exclude=`assets/` --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/dev/plugins/${workspaceFolderBasename}", + "problemMatcher": [] + }, + { + "label": "deployall", + "dependsOrder": "sequence", + "group": "none", + "dependsOn": [ + "buildall", + "deploy" + ] + }, + // ALL-IN-ONE + { + "label": "allinone", + "detail": "Build and deploy", + "dependsOrder": "sequence", + "group": "test", + "dependsOn": [ + "deployall" + ] } ] }