mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-19 22:14:28 +01:00
* Define common types * Define sdk types * Add SDK methods * Add LiquidSdkBuilder * Add callback interfaces * Update CI for WASM * Replace async and test macros * Update sdk-common/macros dependencies
24 lines
550 B
Makefile
24 lines
550 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
|
|
|
|
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
|