0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 11:32:17 +02:00
libsignal/justfile
Alex Konradi 9b34467614
Use taplo to auto-format TOML files
Use https://github.com/tamasfe/taplo to auto-format TOML files. Add a config 
file to force reordering of dependencies in Cargo.toml files. Run taplo in CI 
to check formatting.
2024-03-26 16:06:45 -04:00

23 lines
690 B
Makefile

# List of commands runnable with https://github.com/casey/just
#
# When adding new recipes, include a one-line comment describing the behavior
# to be displayed by `just --list` next to the name.
_default:
echo "no default recipe; run with --list to see all recipes"
exit 1
# Regenerate bridge code for all three app languages.
generate-bridge:
rust/bridge/jni/bin/gen_java_decl.py
rust/bridge/node/bin/gen_ts_decl.py
swift/build_ffi.sh --generate-ffi
# Auto-format code in Java, Rust, Swift, and TypeScript
format-all:
cargo fmt
taplo fmt
(cd swift && swiftformat --swiftversion 5 .)
(cd node && yarn format)
(cd java && ./gradlew spotlessApply)