From 020b926b9cd624b69d9d465fbeb3f5f97abce62e Mon Sep 17 00:00:00 2001 From: Madis Peebo Date: Mon, 29 Jul 2019 15:45:13 +0300 Subject: [PATCH] add windows tasks --- .vscode/tasks.json | 6 ++++++ build.cmd | 3 +++ serve.cmd | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 build.cmd create mode 100644 serve.cmd diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d4593325c..9dcab447c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,6 +7,9 @@ "label": "build", "type": "shell", "command": "./build.sh", + "windows": { + "command": ".\\build.cmd" + }, "group": { "kind": "build", "isDefault": true @@ -17,6 +20,9 @@ "label": "serve", "type": "shell", "command": "./serve.sh", + "windows": { + "command": ".\\serve.cmd" + }, "group": "build", "isBackground": true, "problemMatcher": { diff --git a/build.cmd b/build.cmd new file mode 100644 index 000000000..db845ebe0 --- /dev/null +++ b/build.cmd @@ -0,0 +1,3 @@ +del /f/s/q .\public\ > nul + +hugo --minify \ No newline at end of file diff --git a/serve.cmd b/serve.cmd new file mode 100644 index 000000000..f7a48e861 --- /dev/null +++ b/serve.cmd @@ -0,0 +1,3 @@ +del /f/s/q .\public\ > nul + +hugo server --watch --disableFastRender