www.byjp.me/Taskfile.yml
2024-03-27 20:17:24 +00:00

28 lines
667 B
YAML

# https://taskfile.dev
version: '3'
# TODO: Handle commands in dotenv
# dotenv: ['.env']
env:
DOMAIN: https://www.byjp.me
tasks:
check-links:
cmds:
- lychee --cache --require-https --config lychee.toml .
dev:
env:
DOMAIN_SUFFIX: .test
cmds:
- |
set -o allexport; source .env; set +o allexport
hugo server --minify --printUnusedTemplates -D --baseURL "${DOMAIN}${DOMAIN_SUFFIX}" --appendPort=false
build:
cmds:
- hugo --cacheDir /tmp/hugo/cache --gc --minify --baseURL "${DOMAIN}"
- npm_config_yes=true npx pagefind@latest
import:
cmds:
- cd ./tools/import/omnivore && go run .