mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 10:45:41 +01:00
30 lines
709 B
YAML
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
|