-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathJustfile
44 lines (36 loc) · 1.39 KB
/
Justfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Builds `tonic-web-wasm-client`
build:
@echo 'Building...'
cargo build --target wasm32-unknown-unknown
# Builds test `tonic-web` server
build-test-server:
@echo 'Building test server...'
cd test-suite/simple/server && cargo build
# Starts test `tonic-web` server
start-test-server:
@echo 'Starting test server...'
cd test-suite/simple/server && cargo run
# Runs browser tests for `tonic-web-wasm-client`
test:
@echo 'Testing...'
cd test-suite/simple/client && wasm-pack test --chrome
# Runs browser tests for `tonic-web-wasm-server` (in headless mode)
test-headless:
@echo 'Testing...'
cd test-suite/simple/client && wasm-pack test --headless --chrome
# Builds test `tonic-web` server (with compression enabled: gzip)
build-gzip-test-server:
@echo 'Building test server...'
cd test-suite/gzip/server && cargo build
# Starts test `tonic-web` server (with compression enabled: gzip)
start-gzip-test-server:
@echo 'Starting test server...'
cd test-suite/gzip/server && cargo run
# Runs browser tests for `tonic-web-wasm-client` (with compression enabled: gzip)
test-gzip:
@echo 'Testing...'
cd test-suite/gzip/client && wasm-pack test --chrome
# Runs browser tests for `tonic-web-wasm-server` (in headless mode) (with compression enabled: gzip)
test-gzip-headless:
@echo 'Testing...'
cd test-suite/gzip/client && wasm-pack test --headless --chrome