# user := "admin"
# host := "chimaera.malzahn.lan"
# www-root := "/home/admin/caddy/public_html/fabula"

user := "root"
host := "goldfish.malzahn.lan"
www-root := "/usr/share/caddy/public_html/fabula"

clean:
    rm -rf dist/*

serve:
    npm run dev

deploy: build
    scp -r dist/* {{ user }}@{{ host }}:{{ www-root }}/

core-format:
    find books/core -type f -name "*.html" -exec npx prettier --write {} \;

core-build:
    cd books/core && python3 build.py
    npx prettier --write books/core/index.html

build:
    npm run build
