mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-26 17:34:30 +01:00
* Improve development guides * Apply suggestions from code review Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com> * Add Firefox prerequisites --------- Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
25 lines
592 B
Makefile
25 lines
592 B
Makefile
UNAME := $(shell uname)
|
|
|
|
ifeq ($(UNAME), Darwin)
|
|
CLANG_PREFIX += AR=$(shell brew --prefix llvm)/bin/llvm-ar CC=$(shell brew --prefix llvm)/bin/clang
|
|
endif
|
|
|
|
init:
|
|
cargo install wasm-pack
|
|
rustup target add wasm32-unknown-unknown
|
|
|
|
clippy:
|
|
$(CLANG_PREFIX) cargo clippy --target=wasm32-unknown-unknown -- -D warnings
|
|
|
|
pack:
|
|
$(CLANG_PREFIX) wasm-pack build --weak-refs --target web --scope @breeztech
|
|
|
|
test:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --firefox
|
|
|
|
test-chrome:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --chrome
|
|
|
|
test-safari:
|
|
$(CLANG_PREFIX) wasm-pack test --headless --safari
|