-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
30 lines (21 loc) · 1017 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: test
install-wasm-pack:
which wasm-pack || curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
build: install-wasm-pack
wasm-pack build
build-dev:
wasm-pack build --dev
test: install-wasm-pack
WASM_BINDGEN_TEST_TIMEOUT=30 wasm-pack test --firefox --headless
# Using cargo test with wasm-bindgen-test-runner allows to run specific tests
#NO_HEADLESS=1 GECKODRIVER=$(which geckodriver) cargo test js_tests::simple
build-fluvio-websocket-proxy:
RUST_LOG=debug cargo build --manifest-path ./fluvio-websocket-proxy/Cargo.toml --target $(PROXY_TARGET)
run-fluvio-websocket-proxy: build-fluvio-websocket-proxy
RUST_LOG=debug cargo run --manifest-path ./fluvio-websocket-proxy/Cargo.toml --target $(PROXY_TARGET)
PROXY_TARGET=$(shell rustup show | grep 'Default host' | sed 's/Default host: //g')
check-fluvio-websocket-proxy:
RUST_LOG=debug cargo check --manifest-path ./fluvio-websocket-proxy/Cargo.toml --target $(PROXY_TARGET)
webpack-dev:
yarn install
yarn run webpack-dev