feat: add justfile and end-to-end demo script
check / check (macos-latest) (push) Failing after 28s
check / check (ubuntu-latest) (push) Failing after 26s
check / check (windows-latest) (push) Failing after 28s

- Add justfile with build, test, check, fmt, demo, and e2e recipes
- Add scripts/demo.py to build the native router and client, run the protocol smoke check, and drive keygen, listen, lookup, and bidirectional dial over local SAMv3
This commit is contained in:
nandi committed 2026-11-27 21:30:25 -08:00
1 parent 274bb319ab
commit 8eafa11b22
2 files changed
+250

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# Default recipe: list available commands
default:
@just --list
# Build and run an end-to-end demo of moon-i2p
demo:
python3 scripts/demo.py
# Build native router and SAMv3 client binaries
build:
moon build --target native cmd/router
moon build --target native cmd/client
# Run all MoonBit tests across wasm, js, and native targets
test:
moon test --target wasm
moon test --target js
moon test --target native
# Build native client and run Python E2E suite against MockSamBridge
e2e:
moon build --target native cmd/client
python3 scripts/e2e_test.py
# Type-check all packages across wasm, js, and native targets
check:
moon check --target wasm
moon check --target js
moon check --target native
# Update .mbti package interfaces and format MoonBit sources
fmt:
moon info && moon fmt