From 214a34bedefa2a20a9c6b4de1acfee20bbb3e67a Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 26 May 2024 21:26:33 +0200 Subject: [PATCH] fix: make livereload work with flake --- flake.nix | 3 +++ taskfile.yaml | 14 ++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 4073ebe..6c42ea1 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,9 @@ python3 python3Packages.pelican python3Packages.markdown-include + python3Packages.typogrify + python3Packages.livereload + python3Packages.invoke ]; shellHook = '' mkdir -p plugins diff --git a/taskfile.yaml b/taskfile.yaml index fddfe8b..b4790a8 100644 --- a/taskfile.yaml +++ b/taskfile.yaml @@ -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