Skip to content

Commit

Permalink
Add a justfile for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Aug 19, 2023
1 parent e34775e commit 36f2741
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
set dotenv-load

default: pelican

pelican:
pelican

serve:
pelican --listen --autoreload

compile-deps:
.venv/bin/pip-compile --no-emit-index-url \
--no-emit-trusted-host \
--resolver=backtracking \
--unsafe-package=distribute \
--unsafe-package=offby1-website \
--unsafe-package=offby1.website \
--unsafe-package=pip \
--unsafe-package=setuptools \
requirements.in

update-deps:
.venv/bin/pip-compile --no-emit-index-url \
--upgrade \
--no-emit-trusted-host \
--resolver=backtracking \
--unsafe-package=distribute \
--unsafe-package=offby1-website \
--unsafe-package=offby1.website \
--unsafe-package=pip \
--unsafe-package=setuptools \
requirements.in

install-deps:
.venv/bin/pip-sync requirements.txt

deps: compile-deps install-deps

0 comments on commit 36f2741

Please sign in to comment.