This is broken but new job awaits
This commit is contained in:
parent
d67d18ab77
commit
b0d5050896
3 changed files with 52 additions and 0 deletions
12
.vscode/config.sh
vendored
Executable file
12
.vscode/config.sh
vendored
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||||||
|
# printf "${SCRIPT_DIR}\n"
|
||||||
|
# printf "$(dirname $0)\n"
|
||||||
|
if ! [[ -e "${SCRIPT_DIR}/settings.json" ]]; then
|
||||||
|
printf '.vscode/settings.json does not exist. Creating it with default settings. Exiting afterwards. Run your task again.\n\n'
|
||||||
|
cp "${SCRIPT_DIR}/defsettings.json" "${SCRIPT_DIR}/settings.json"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
printf '.vscode/settings.json does exist. Congrats.\n'
|
||||||
|
printf 'Make sure to change settings.json to match your deck.\n'
|
||||||
|
fi
|
7
.vscode/defsettings.json
vendored
Normal file
7
.vscode/defsettings.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"deckip" : "0.0.0.0",
|
||||||
|
"deckport" : "22",
|
||||||
|
"deckpass" : "ssap",
|
||||||
|
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa",
|
||||||
|
"deckdir" : "/home/deck"
|
||||||
|
}
|
33
.vscode/tasks.json
vendored
33
.vscode/tasks.json
vendored
|
@ -1,6 +1,38 @@
|
||||||
{
|
{
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
|
// OTHER
|
||||||
|
{
|
||||||
|
"label": "checkforsettings",
|
||||||
|
"type": "shell",
|
||||||
|
"group": "none",
|
||||||
|
"detail": "Check that settings.json has been created",
|
||||||
|
"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
|
// BUILD
|
||||||
{
|
{
|
||||||
"label": "pnpmsetup",
|
"label": "pnpmsetup",
|
||||||
|
@ -9,6 +41,7 @@
|
||||||
"detail": "Setup pnpm",
|
"detail": "Setup pnpm",
|
||||||
"command": "pnpm i",
|
"command": "pnpm i",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
"${workspaceFolderBasename}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "updatefrontendlib",
|
"label": "updatefrontendlib",
|
||||||
|
|
Loading…
Reference in a new issue