-
-
Notifications
You must be signed in to change notification settings - Fork 551
Expand file tree
/
Copy pathjustfile
More file actions
73 lines (60 loc) 路 1.52 KB
/
Copy pathjustfile
File metadata and controls
73 lines (60 loc) 路 1.52 KB
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
alias b := build
alias d := dev
alias ds := docs-serve
alias f := fix
alias t := test
alias vc := version-check
alias vu := version-update
alias xs := xssmaze-score
# List available tasks.
default:
@just --list
# Build release binary.
[group('build')]
build:
cargo build --release
# Build debug binary.
[group('build')]
dev:
cargo build
# Update Nix flake lock.
[group('build')]
nix-update:
nix flake update
# Serve docs site locally.
[group('documents')]
docs-serve:
hwaro serve -i docs --base-url="http://localhost:3000"
# Install docs dependencies (macOS).
[group('documents')]
docs-dependencies:
brew install hahwul/hwaro/hwaro
# Format code and apply clippy suggestions.
[group('build')]
fix:
cargo fmt
cargo clippy --fix --allow-dirty
# Report dalfox version across all version-bearing files.
[group('release')]
version-check:
crystal run scripts/version_check.cr
# Bump dalfox version in lockstep across all version-bearing files.
[group('release')]
version-update:
crystal run scripts/version_update.cr
# Run unit tests.
[group('test')]
test:
cargo test
# Run all tests including ignored ones.
[group('test')]
test_all:
cargo test -- --include-ignored
# Benchmark detection against XSSMaze (main) and record the score in docs.
[group('benchmark')]
xssmaze-score: build
crystal run scripts/xssmaze_score.cr
# Re-render the XSSMaze score page from the committed snapshot (no scanning).
[group('benchmark')]
xssmaze-render:
XSSMAZE_RENDER_ONLY=1 crystal run scripts/xssmaze_score.cr