-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (31 loc) · 967 Bytes
/
justfile
File metadata and controls
40 lines (31 loc) · 967 Bytes
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
repo_root := `pwd`
wordpress_dir := "./dev/data/wordpress1"
alias fmt := format
alias u := update
[private]
list:
@# First command in the file is invoked by default
@just --list
# Run benchmarks
bench *args:
finefile bench -f finefile.toml {{ args }}
bench-posts *args:
just bench -f finefile-posts.toml {{ args }}
bench-products *args:
just bench -f finefile-products.toml {{ args }}
# Run development server
[working-directory('dev')]
dev BENCHMARK_NAME:
just bench --step setup -c {{ BENCHMARK_NAME }}
nix run . -- attach
# Format source and then check for unfixable issues
format:
just --fmt --unstable
fd -e json -x jsonfmt -w
fd -e nix -x nixfmt
fd "finefile\.toml" -x finefile format
# Upgrade dependencies
update: _update-flakes
_update-flakes:
nix flake update
fd flake.nix -j 4 -x bash -c 'echo "Updating flake inputs in {//}"; cd "{//}" && nix flake update --inputs-from "$0"' "{{ repo_root }}"