yew/CONTRIBUTING.md
Justin Starry f703bdd987
Clean up readme (#930)
* Clean up README

* Remove bors
2020-02-09 18:00:13 +08:00

1.1 KiB

Contribution Guide

Setup your local development environment

Add the wasm target

rustup add target wasm32-unknown-unknown

Install cargo-web

This is an optional tool that simplifies running the examples:

cargo install cargo-web

Add --force option to ensure you install the latest version.

Build

cargo build --target wasm32-unknown-unknown

Test

For the tests to work one have to ensure that wasm-bindgen-cli is installed. Instructions

Additionally a webdriver must be installed locally and configured to be on the PATH. Currently supports geckodriver, chromedriver, and safaridriver, although more driver support may be added! You can download these at:

./ci/run_tests.sh