diff --git a/examples/yew-app/Cargo.toml b/examples/yew-app/Cargo.toml index a78b7b0..5eaa2c0 100644 --- a/examples/yew-app/Cargo.toml +++ b/examples/yew-app/Cargo.toml @@ -11,16 +11,13 @@ version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[lib] -crate-type = ["cdylib", "rlib"] - [dependencies] log = "0.4" gloo = "0.10" js-sys = "0.3" serde = "1" reqwest = { version = "0.11.7", features = ["json"] } -yew = { version = "0.21.0", features=["csr"] } +yew = { version = "0.21.0", features = ["csr"] } yew-router = { version = "0.18.0" } yew-hooks = { path = "../../crates/yew-hooks" } wasm-bindgen = "0.2" @@ -36,8 +33,4 @@ wasm-bindgen-test = "0.3.14" [dev-dependencies.web-sys] version = "0.3" -features = [ - "Document", - "Element", - "HtmlCollection", -] +features = ["Document", "Element", "HtmlCollection"] diff --git a/examples/yew-app/README.md b/examples/yew-app/README.md index 0a9c625..4a00426 100644 --- a/examples/yew-app/README.md +++ b/examples/yew-app/README.md @@ -2,29 +2,23 @@ This is the official base template for [Create Yew App](https://github.com/jetli/create-yew-app). -## How to install - -```sh -npm install -``` - ## How to run in debug mode ```sh # Builds the project and opens it in a new browser tab. Auto-reloads when the project changes. -npm start +trunk serve ``` ## How to build in release mode ```sh # Builds the project and places it into the `dist` folder. -npm run build +trunk build ``` ## How to run unit tests ```sh # Runs tests -npm test -``` \ No newline at end of file +wasm-pack test --headless --chrome +``` diff --git a/examples/yew-app/index.html b/examples/yew-app/index.html index 103ec76..15a358a 100644 --- a/examples/yew-app/index.html +++ b/examples/yew-app/index.html @@ -1,17 +1,16 @@ - - - - Yew Hooks + + + + Yew Hooks - - - - - - - - - - \ No newline at end of file + + + + + + + + +