xmr-btc-swap/justfile
b-enedict 430a22fbf6
refactor(gui): Update MUI to v7 (#383)
* task(gui): update to mui v5

* task(gui): use sx prop instead of system props

* task(gui): update to mui v6 and replace makeStyles with sx prop

* task(gui): update to mui v7

* task(gui): update react

* fix(gui): fix import

* task(gui): adjust theme and few components to fix migration introduced styling errors

* fix(gui): animation issues with text field animations

* fix(gui): remove 'darker' theme and make 'dark' theme the default

- with the new update 'dark' theme is already quite dark and therefore a 'darker' theme not necessary
- the default theme is set to 'dark' now in settings initialization

* feat(tooling): Upgrade dprint to 0.50.0, eslint config, prettier, justfile commands

- Upgrade dprint to 0.50.0
- Use sane default eslint config (fairly permissive)
- `dprint fmt` now runs prettier for the `src-gui` folder
- Added `check_gui_eslint`, `check_gui_tsc` and `check_gui` commands

* refactor: fix a few eslint errors

* dprint fmt

* fix tsc complains

* nitpick: small spacing issue

---------

Co-authored-by: Binarybaron <binarybaron@protonmail.com>
Co-authored-by: Mohan <86064887+binarybaron@users.noreply.github.com>
2025-06-06 22:31:33 +02:00

87 lines
1.9 KiB
Makefile

# Show help for each of the justfile recipes
help:
@just --list
# Build Monero C++ Codebase (currently disabled)
# build_monero_cpp:
# just update_submodules
# cd monero-sys/monero && make -j8 release
# Clean the Monero C++ Codebase
clean_monero_cpp:
rm -rf monero-sys/monero/
just update_submodules
# Builds the Rust bindings for Monero
monero_sys:
just update_submodules
cd monero-sys && cargo build
# Start the Tauri app
tauri:
cd src-tauri && cargo tauri dev --no-watch -- -- --testnet
# Install the GUI dependencies
gui_install:
cd src-gui && yarn install
# Start the GUI Dev Server
gui:
cd src-gui && yarn dev
# Build the GUI
gui_build:
cd src-gui && yarn build
# Run the Rust tests
tests:
cargo nextest run
# Tests the Rust bindings for Monero
test_monero_sys:
cd monero-sys && cargo nextest run
# Builds the ASB and Swap binaries
swap:
cd swap && cargo build --bin asb --bin=swap
# Updates our submodules (currently only Monero C++ codebase)
update_submodules:
cd monero-sys && git submodule update --init --recursive --force
# Run clippy checks
clippy:
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Check the bindings for the Tauri API
check_bindings:
cd src-gui && yarn run check-bindings
# Generate the bindings for the Tauri API
bindings:
cd src-gui && yarn run gen-bindings
# Kill all instances of monero-wallet-rpc running in the background
kill_monero_wallet_rpc:
killall monero-wallet-rpc && pkill -f monero-wallet-rpc
# Format the code
fmt:
dprint fmt
# Run eslint for the GUI frontend
check_gui_eslint:
cd src-gui && yarn run eslint
# Run the typescript type checker for the GUI frontend
check_gui_tsc:
cd src-gui && yarn run tsc --noEmit
# Run the checks for the GUI frontend
check_gui:
just check_gui_eslint || true
just check_gui_tsc
# Sometimes you have to prune the docker network to get the integration tests to work
docker-prune-network:
docker network prune -f