set -e
TARGET="--target=wasm32-unknown-unknown"
echo "Build all ./examples"
cargo +nightly build $TARGET --manifest-path=./examples/a-counter/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/b-counter-component/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/c-counter-nested-component/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/d-clock-ubu-component-in-context/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/e-clock-sub-app-in-context/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/f-sub-app-created-by-simi/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/todo/Cargo.toml
cargo +nightly build $TARGET --manifest-path=./examples/fetch-json/Cargo.toml