about summary refs log tree commit diff stats
path: root/justfile
blob: 8883577d40768e4d62bb81227f061e74c2d3b3de (plain)
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
default:
	@just --list --justfile {{ justfile() }} --unsorted

prepare:
	ln -sf $(nix-build --no-out-link -A css) frontend/static/base.css

checkformat:
	gofmt -d .
	goimports -d .
	golines --dry-run .

format:
	gofmt -w .
	goimports -w .
	golines -w .

fix:
	go fix .

precommit:
	nix-build -A pre-commit-check

dev:
	watchexec -e go -r wgo run -exit ./serve/ --live --config config.toml

index:
	wgo run -exit ./import/ --config config.toml

reindex:
	wgo run -exit ./import/ --config config.toml --replace