Working deploy task to send to deck

This commit is contained in:
TrainDoctor 2022-06-16 12:15:06 -07:00
parent b0d5050896
commit f240cbc23f
2 changed files with 45 additions and 24 deletions

2
.gitignore vendored
View file

@ -38,3 +38,5 @@ __pycache__/
/.yalc /.yalc
yalc.lock yalc.lock
.vscode/settings.json

67
.vscode/tasks.json vendored
View file

@ -10,29 +10,6 @@
"command": "bash -c ${workspaceFolder}/.vscode/config.sh", "command": "bash -c ${workspaceFolder}/.vscode/config.sh",
"problemMatcher": [] "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 // BUILD
{ {
"label": "pnpmsetup", "label": "pnpmsetup",
@ -41,7 +18,7 @@
"detail": "Setup pnpm", "detail": "Setup pnpm",
"command": "pnpm i", "command": "pnpm i",
"problemMatcher": [] "problemMatcher": []
"${workspaceFolderBasename}" // "${workspaceFolderBasename}"
}, },
{ {
"label": "updatefrontendlib", "label": "updatefrontendlib",
@ -70,6 +47,48 @@
"updatefrontendlib", "updatefrontendlib",
"build" "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"
]
} }
] ]
} }