Skip to content

Commit 0289eb2

Browse files
committed
feat(tooling): Add Justfile to ease developer tasks
1 parent 347164e commit 0289eb2

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Justfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
just := just_executable()
2+
nix := require('nix')
3+
zsh := require('zsh')
4+
5+
set script-interpreter := ['nix', 'develop', '--command', 'zsh', '+o', 'nomatch', '-eu']
6+
set shell := ['zsh', '+o', 'nomatch', '-ecu']
7+
set unstable := true
8+
9+
[default]
10+
[private]
11+
@list:
12+
{{ just }} --list --unsorted
13+
14+
[script]
15+
build:
16+
make public
17+
18+
[script]
19+
preview:
20+
(
21+
while ! nc -z localhost 1111; do sleep 1; done
22+
xdg-open http://localhost:1111
23+
)&
24+
make serve

flake.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
libertinus
6262
luajitPackages.luarocks
6363
mold
64+
netcat
6465
nodejs
6566
rustc
6667
satysfi
@@ -70,6 +71,7 @@
7071
texlive.combined.scheme-full
7172
typst
7273
python313Packages.weasyprint
74+
xdg-utils
7375
yq
7476
zola
7577
zsh

0 commit comments

Comments
 (0)