Add tasks for dependency management

This commit is contained in:
Luca Bosin
2023-08-25 21:24:11 +02:00
parent e8b11c7718
commit 4fc1595af3

10
.vscode/tasks.json vendored
View File

@ -8,6 +8,16 @@
"type": "shell",
"command": "npm run build && rsync -arzP --progress --delete-after --force --update --inplace --times ./build ./package.json ./package-lock.json ./start.sh root@f.bosin.ch:/home/sveltekit"
},
{
"label": "Delete Dependencies",
"type": "shell",
"command": "ssh f.bosin.ch rm -rf /home/sveltekit/node_modules"
},
{
"label": "Install Dependencies",
"type": "shell",
"command": "ssh f.bosin.ch sudo -u sveltekit bash -c 'cd /home/sveltekit; npm ci --omit dev'"
},
{
"label": "Restart Server",
"type": "shell",