www.byjp.me/Taskfile.yml
JP Hastings-Spital 92ced80c60 Fix import task
2024-04-02 17:15:54 +01:00

30 lines
709 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:
dir: tools/
cmds:
- go run ./import/omnivore ../
- go run ./import/webmentionio