From a8801db464bc96ff55b6b277346a1375b73e2f5b Mon Sep 17 00:00:00 2001 From: Kaan Genc Date: Mon, 11 Apr 2022 00:01:19 -0400 Subject: [PATCH] tasks for building and publishing the site --- .vscode/tasks.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..36713dc --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,26 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "dev", + "type": "shell", + "command": "hugo server -D", + "problemMatcher": [] + }, + { + "label": "build", + "type": "shell", + "command": "hugo -D", + "problemMatcher": [] + }, + { + "label": "publish", + "type": "shell", + "command": "rsync -av ./public/ /var/www/", + "problemMatcher": [], + "dependsOn": "build" + } + ] +} \ No newline at end of file