fix: make livereload work with flake

This commit is contained in:
Yorick Barbanneau 2024-05-26 21:26:33 +02:00
parent 1a9c3ae813
commit 214a34bede
2 changed files with 7 additions and 10 deletions

View file

@ -52,6 +52,9 @@
python3
python3Packages.pelican
python3Packages.markdown-include
python3Packages.typogrify
python3Packages.livereload
python3Packages.invoke
];
shellHook = ''
mkdir -p plugins

View file

@ -2,16 +2,10 @@ version: "3"
set: [errexit, pipefail, nounset]
shopt: [globstar]
tasks:
venv:create:
cmds:
- python3 -m venv .venv
status:
- test -f .venv
venv:deps:
cmds:
- ./.venv/bin/python3 -m pip install -r requirements.txt
build:
cmds:
- ./.venv/bin/pelican -o ./output
- pelican -o ./output
serve:
- ./.venv/bin/invoke livereload
cmds:
- invoke livereload