-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
76 lines (57 loc) · 1.26 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
set dotenv-load
export EDITOR := 'nvim'
alias c := check
alias f := fmt
alias r := run
alias t := test
default:
just --list
all: fmt check readme
[group: 'app']
build:
uv build
[group: 'release']
deploy-web: generate-docs
cd www && bun run build && bunx gh-pages -d dist
[group: 'app']
dev-deps:
cargo install present tokei typos
[group: 'check']
check:
uv run ruff check
[group: 'check']
count:
tokei src
[group: 'format']
fmt:
ruff check --select I --fix && ruff format
[group: 'format']
fmt-web:
cd www && prettier --write .
[group: 'generate']
generate-docs:
cd docs && uv run sphinx-build -M html config build
rm -rf www/public/docs
uv run ./bin/flatten-docs.py --source docs/build/html --output www/public/docs
just fmt-web
[group: 'generate']
generate-example-output:
./bin/generate-example-output
[group: 'release']
publish:
rm -rf dist && uv build && uv publish
[group: 'format']
readme:
present --in-place README.md && typos --write-changes README.md
[group: 'app']
run *args:
uv run pqg {{args}}
[group: 'app']
serve-docs: generate-docs
python3 -m http.server 8000 --directory docs/build/html
[group: 'app']
serve-web:
cd www && bun install && bunx --bun vite
[group: 'test']
test *args:
uv run pytest --verbose {{args}}