2022-08-06 02:04:40 +08:00
|
|
|
projects := "warpgate warpgate-admin warpgate-common warpgate-db-entities warpgate-db-migrations warpgate-database-protocols warpgate-protocol-ssh warpgate-protocol-mysql warpgate-sso"
|
2022-04-11 04:58:58 +08:00
|
|
|
|
|
|
|
run *ARGS:
|
|
|
|
RUST_BACKTRACE=1 RUST_LOG=warpgate cd warpgate && cargo run -- --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 -p $p {{ARGS}}; done
|
|
|
|
|
|
|
|
clippy *ARGS:
|
2022-07-24 03:31:35 +08:00
|
|
|
for p in {{projects}}; do cargo cranky -p $p {{ARGS}}; done
|
2022-04-11 04:58:58 +08:00
|
|
|
|
2022-07-30 00:32:01 +08:00
|
|
|
test:
|
|
|
|
for p in {{projects}}; do cargo test -p $p; done
|
|
|
|
|
2022-04-11 04:58:58 +08:00
|
|
|
yarn *ARGS:
|
2022-06-27 02:50:04 +08:00
|
|
|
cd warpgate-web && yarn {{ARGS}}
|
2022-04-11 04:58:58 +08:00
|
|
|
|
2022-05-30 15:32:45 +08:00
|
|
|
migrate *ARGS:
|
|
|
|
cargo run -p warpgate-db-migrations -- {{ARGS}}
|
|
|
|
|
2022-05-30 18:55:09 +08:00
|
|
|
lint:
|
2022-06-27 02:50:04 +08:00
|
|
|
cd warpgate-web && yarn run lint
|
2022-05-30 18:55:09 +08:00
|
|
|
|
2022-04-11 04:58:58 +08:00
|
|
|
svelte-check:
|
2022-06-27 02:50:04 +08:00
|
|
|
cd warpgate-web && yarn run check
|
2022-04-11 04:58:58 +08:00
|
|
|
|
|
|
|
openapi-all:
|
2022-06-27 02:50:04 +08:00
|
|
|
cd warpgate-web && yarn openapi:schema:admin && yarn openapi:schema:gateway && yarn openapi:client:admin && yarn openapi:client:gateway
|
2022-04-11 04:58:58 +08:00
|
|
|
|
|
|
|
openapi:
|
2022-06-27 02:50:04 +08:00
|
|
|
cd warpgate-web && yarn openapi:client:admin && yarn openapi:client:gateway
|
2022-04-11 04:58:58 +08:00
|
|
|
|
2022-05-30 18:55:09 +08:00
|
|
|
cleanup: (fix "--allow-dirty") (clippy "--fix" "--allow-dirty") fmt svelte-check lint
|
2022-07-27 03:04:24 +08:00
|
|
|
|
|
|
|
udeps:
|
|
|
|
cargo udeps --all-targets
|