-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
justfile
39 lines (26 loc) · 1.27 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
projects := "warpgate warpgate-admin warpgate-common warpgate-db-entities warpgate-db-migrations warpgate-database-protocols warpgate-protocol-ssh warpgate-protocol-mysql warpgate-protocol-postgres warpgate-protocol-http warpgate-core warpgate-sso"
run $RUST_BACKTRACE='1' *ARGS='run':
cargo run --all-features -- --config config.yaml {{ARGS}}
fmt:
for p in {{projects}}; do cargo fmt -p $p -v; done
fix *ARGS:
for p in {{projects}}; do cargo fix --all-features -p $p {{ARGS}}; done
clippy *ARGS:
for p in {{projects}}; do cargo cranky --all-features -p $p {{ARGS}}; done
test:
for p in {{projects}}; do cargo test --all-features -p $p; done
yarn *ARGS:
cd warpgate-web && yarn {{ARGS}}
migrate *ARGS:
cargo run --all-features -p warpgate-db-migrations -- {{ARGS}}
lint *ARGS:
cd warpgate-web && yarn run lint {{ARGS}}
svelte-check:
cd warpgate-web && yarn run check
openapi-all:
cd warpgate-web && yarn openapi:schema:admin && yarn openapi:schema:gateway && yarn openapi:client:admin && yarn openapi:client:gateway
openapi:
cd warpgate-web && yarn openapi:client:admin && yarn openapi:client:gateway
cleanup: (fix "--allow-dirty") (clippy "--fix" "--allow-dirty") fmt svelte-check lint
udeps:
cargo udeps --all-features --all-targets