-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.justfile
74 lines (52 loc) · 1.61 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
default:
@just --list
info:
@echo JUST PATH: `which just`
@echo GIT PATH: `which git`
@echo CARGO PATH: `which cargo`
@echo GREP PATH: `which grep`
@echo XARGS PATH: `which xargs`
@echo TYPOS PATH: `which typos`
@echo DENO PATH: `which deno`
@echo TAPLO PATH: `which taplo`
@echo SHFMT PATH: `which shfmt`
check: info typoCheck fmtCheck clippyCheck buildCheck docCheck testCheck
typoCheck:
typos -c ./typos.toml
fmtCheck: rustFmtCheck justFmtCheck mdFmtCheck tomlFmtCheck ymlFmtCheck shFmtCheck
fmt: rustFmt justFmt mdFmt tomlFmt ymlFmt shFmt
buildCheck:
cargo build --locked
clippyCheck:
cargo clippy --locked --all-targets -- --deny warnings
docCheck:
cargo doc --no-deps --locked
testCheck:
cargo test --locked
rustFmtCheck:
cargo fmt --check
rustFmt:
cargo fmt
justFmtCheck:
just --unstable --fmt --check
justFmt:
just --unstable --fmt
mdFmtCheck:
git ls-files | grep -E '^.*\.md$' | xargs deno fmt --check --ext md
mdFmt:
git ls-files | grep -E '^.*\.md$' | xargs deno fmt --ext md
ymlFmtCheck:
git ls-files | grep -E '^.*\.yml$' | xargs deno fmt --check --ext yml
ymlFmt:
git ls-files | grep -E '^.*\.yml$' | xargs deno fmt --ext yml
tomlFmtCheck:
git ls-files | grep -E '^.*\.toml$' | xargs taplo format --check
tomlFmt:
git ls-files | grep -E '^.*\.toml$' | xargs taplo format
shFmt:
git ls-files | grep -E '^scripts/.*$' | xargs shfmt -p -s -i 2 -ci -sr -kp -fn -w
shFmtCheck:
git ls-files | grep -E '^scripts/.*$' | xargs shfmt -p -s -i 2 -ci -sr -kp -fn -d
alias c := check
alias i := info
alias f := fmt