-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
53 lines (38 loc) · 813 Bytes
/
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
all:
just --justfile {{justfile()}} fmt
just --justfile {{justfile()}} check
just --justfile {{justfile()}} clippy
just --justfile {{justfile()}} test
lint:
just --justfile {{justfile()}} fmt
just --justfile {{justfile()}} check
just --justfile {{justfile()}} clippy
clippy:
cargo clippy --all-targets
check:
cargo check --all-targets
fmt:
cargo fmt --all
migrate:
sqlx migrate run
prepare:
# Prepare sqlx for offline build
cargo sqlx prepare
test:
cargo test
dev: migrate
cargo watch -x "run -- start"
db:
docker compose up db
db-detached:
docker compose up db -d
stop-db:
docker compose down db
docker:
docker compose up db valkey
docker-full:
docker compose up
docker-down:
docker compose down
docker-build-dev: prepare
docker build -t open-edc:dev .