-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjustfile
54 lines (42 loc) · 1.05 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
#!/usr/bin/env -S just --justfile
set dotenv-load := true
alias d := dev
alias f := fmt
alias l := lint
alias c := comply
alias k := check
[doc('List available commands.')]
_default:
just --list --unsorted
[doc('Setup the repository.')]
setup:
docker compose build
pnpm i
[doc('Tasks to make the code-base comply with the rules. Mostly used in git hooks.')]
comply: fmt lint
[doc('Check if the repository comply with the rules and ready to be pushed.')]
check: fmt-check lint
[doc('Develop the app.')]
dev:
pnpm run dev
[doc('Runs services in the background.')]
services:
docker compose up -d
[doc('Stops services running in the background.')]
stop:
docker compose down
[doc('Format the codebase.')]
fmt:
cargo fmt --all
pnpm run format
dprint fmt
[doc('Check is the codebase properly formatted.')]
fmt-check:
cargo fmt --all --check
dprint check
[doc('Lint the codebase.')]
lint:
cargo clippy --workspace --all-targets --all-features
pnpm run lint
# Run `typos --write-changes` to fix the mistakes
typos