File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,16 +11,13 @@ version = "0.1.0"
1111
1212# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313
14- [lib ]
15- crate-type = [" cdylib" , " rlib" ]
16-
1714[dependencies ]
1815log = " 0.4"
1916gloo = " 0.10"
2017js-sys = " 0.3"
2118serde = " 1"
2219reqwest = { version = " 0.11.7" , features = [" json" ] }
23- yew = { version = " 0.21.0" , features = [" csr" ] }
20+ yew = { version = " 0.21.0" , features = [" csr" ] }
2421yew-router = { version = " 0.18.0" }
2522yew-hooks = { path = " ../../crates/yew-hooks" }
2623wasm-bindgen = " 0.2"
@@ -36,8 +33,4 @@ wasm-bindgen-test = "0.3.14"
3633
3734[dev-dependencies .web-sys ]
3835version = " 0.3"
39- features = [
40- " Document" ,
41- " Element" ,
42- " HtmlCollection" ,
43- ]
36+ features = [" Document" , " Element" , " HtmlCollection" ]
Original file line number Diff line number Diff line change 22
33This is the official base template for [ Create Yew App] ( https://github.com/jetli/create-yew-app ) .
44
5- ## How to install
6-
7- ``` sh
8- npm install
9- ```
10-
115## How to run in debug mode
126
137``` sh
148# Builds the project and opens it in a new browser tab. Auto-reloads when the project changes.
15- npm start
9+ trunk serve
1610```
1711
1812## How to build in release mode
1913
2014``` sh
2115# Builds the project and places it into the `dist` folder.
22- npm run build
16+ trunk build
2317```
2418
2519## How to run unit tests
2620
2721``` sh
2822# Runs tests
29- npm test
30- ```
23+ wasm-pack test --headless --chrome
24+ ```
Original file line number Diff line number Diff line change 11<!doctype html>
22< html lang ="en ">
3- < head >
4- < meta charset ="utf-8 ">
5- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6- < title > Yew Hooks</ title >
3+ < head >
4+ < meta charset ="utf-8 " / >
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1 " / >
6+ < title > Yew Hooks</ title >
77
8- < link rel ="shortcut icon " href ="favicon.ico ">
9- < link data-trunk rel ="rust " />
10- < link data-trunk rel ="copy-file " href ="public/favicon.ico "/>
11- < link data-trunk rel ="copy-file " href ="public/logo.svg "/>
12- < link data-trunk rel ="tailwind-css " href ="tailwind.css "/>
13- < base data-trunk-public-url />
14- </ head >
15- < body class ="min-h-screen ">
16- </ body >
17- </ html >
8+ < link rel ="shortcut icon " href ="favicon.ico " />
9+ < link data-trunk rel ="rust " />
10+ < link data-trunk rel ="copy-file " href ="public/favicon.ico " />
11+ < link data-trunk rel ="copy-file " href ="public/logo.svg " />
12+ < link data-trunk rel ="tailwind-css " href ="tailwind.css " />
13+ < base data-trunk-public-url />
14+ </ head >
15+ < body class ="min-h-screen "> </ body >
16+ </ html >
You can’t perform that action at this time.
0 commit comments