Skip to content

Commit

Permalink
Adding optional browser builds in justfile. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinswiber authored Sep 15, 2023
1 parent ad5eb9b commit 04fbc2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ RUN apt-get update && apt-get install nodejs -y

RUN rustup target install wasm32-unknown-unknown

USER vscode
RUN cargo install wasm-bindgen-cli
RUN cargo install wasm-opt
RUN cargo install wasm-pack
RUN cargo install just

RUN chmod -R g+w $CARGO_HOME/registry
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ test-unit:
test-integration:
cargo test --test integration_tests
test-wasm-firefox:
wasm-pack test --headless --firefox --test wasm_browser
(which geckodriver && wasm-pack test --headless --firefox --test wasm_browser) || echo "Install geckodriver to run Firefox tests."
test-wasm-chrome:
wasm-pack test --headless --chrome --test wasm_browser
(which chromedriver && wasm-pack test --headless --chrome --test wasm_browser) || echo "Install chromedriver to run Chrome tests."
test-wasm-node:
wasm-pack test --node --test wasm_node

0 comments on commit 04fbc2f

Please sign in to comment.