From 3fbb1ead2f64ee093480a88d86bda8a2f35fbe0c Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Thu, 18 Jan 2024 23:37:44 +0000 Subject: [PATCH] Adding a taskfile --- Taskfile.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 00000000..a1d9b1d3 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,19 @@ +# https://taskfile.dev + +version: '3' + +# TODO: Handle commands in dotenv +# dotenv: ['.env'] + +tasks: + check-links: + cmds: + - rm -rf ./public/ + - lychee --cache --suggest --require-https . + dev: + cmds: + - hugo server --minify + build: + cmds: + - hugo --cacheDir /tmp/hugo/cache --minify --baseURL "https://www.byjp.me" + - npm_config_yes=true npx pagefind@latest