Skip to content

Commit 63e5c43

Browse files
committed
fix trunk
1 parent 6814f69 commit 63e5c43

3 files changed

Lines changed: 19 additions & 33 deletions

File tree

examples/yew-app/Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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]
1815
log = "0.4"
1916
gloo = "0.10"
2017
js-sys = "0.3"
2118
serde = "1"
2219
reqwest = { version = "0.11.7", features = ["json"] }
23-
yew = { version = "0.21.0", features=["csr"] }
20+
yew = { version = "0.21.0", features = ["csr"] }
2421
yew-router = { version = "0.18.0" }
2522
yew-hooks = { path = "../../crates/yew-hooks" }
2623
wasm-bindgen = "0.2"
@@ -36,8 +33,4 @@ wasm-bindgen-test = "0.3.14"
3633

3734
[dev-dependencies.web-sys]
3835
version = "0.3"
39-
features = [
40-
"Document",
41-
"Element",
42-
"HtmlCollection",
43-
]
36+
features = ["Document", "Element", "HtmlCollection"]

examples/yew-app/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,23 @@
22

33
This 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+
```

examples/yew-app/index.html

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
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>

0 commit comments

Comments
 (0)