-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
85 lines (65 loc) · 1.57 KB
/
justfile
File metadata and controls
85 lines (65 loc) · 1.57 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
74
75
76
77
78
79
80
81
82
83
84
85
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
default:
@just serve
[group: 'services']
services-up:
@docker compose -f docker/compose.yaml up -d
[group: 'services']
services-down:
@docker compose -f docker/compose.yaml down
[group: 'services']
services-stop:
@docker compose -f docker/compose.yaml stop
[group: 'services']
services-restart:
@docker compose -f docker/compose.yaml down
@docker compose -f docker/compose.yaml up -d
[group: 'database']
migrate-add MIGRATION_NAME:
@cargo sqlx migrate add {{ MIGRATION_NAME }}
[group: 'database']
migrate-run:
@cargo sqlx migrate run
[group: 'database']
migrate-down:
@cargo sqlx migrate revert
[group: 'misc']
serve:
@just services-up
@sleep 1
@just run-watch
[group: 'misc']
run:
@cargo run
[group: 'misc']
run-watch:
@cargo watch -q -c -x run -i logs/
[group: 'test']
test:
@cargo test
[group: 'test']
filter PATTERN:
@cargo test {{PATTERN}}
[group: 'test']
test-watch:
@cargo watch -q -c -x test
[group: 'check']
clippy:
@cargo clippy --all --all-targets --all-features -- --deny warnings
[group: 'check']
lint:
@cargo fmt --all -- --check
@cargo clippy --all --all-targets -- --deny warnings
[group: 'check']
lint-fix:
@cargo fmt --all
@cargo clippy
[group: 'docs']
docs CRATE:
@open "https://docs.rs/{{CRATE}}"
[group: 'misc']
clean:
@cargo clean
[group: 'scripts']
create-superuser *args='':
@cargo run --bin create_superuser -- {{args}}