Working deploy task to send to deck
This commit is contained in:
parent
b0d5050896
commit
f240cbc23f
2 changed files with 45 additions and 24 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -38,3 +38,5 @@ __pycache__/
|
||||||
|
|
||||||
/.yalc
|
/.yalc
|
||||||
yalc.lock
|
yalc.lock
|
||||||
|
|
||||||
|
.vscode/settings.json
|
||||||
|
|
67
.vscode/tasks.json
vendored
67
.vscode/tasks.json
vendored
|
@ -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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue