Skip to content

Commit

Permalink
fix trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
jetli committed Mar 5, 2024
1 parent 6814f69 commit 63e5c43
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 33 deletions.
11 changes: 2 additions & 9 deletions examples/yew-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
14 changes: 4 additions & 10 deletions examples/yew-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
wasm-pack test --headless --chrome
```
27 changes: 13 additions & 14 deletions examples/yew-app/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Yew Hooks</title>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Yew Hooks</title>

<link rel="shortcut icon" href="favicon.ico">
<link data-trunk rel="rust" />
<link data-trunk rel="copy-file" href="public/favicon.ico"/>
<link data-trunk rel="copy-file" href="public/logo.svg"/>
<link data-trunk rel="tailwind-css" href="tailwind.css"/>
<base data-trunk-public-url/>
</head>
<body class="min-h-screen">
</body>
</html>
<link rel="shortcut icon" href="favicon.ico" />
<link data-trunk rel="rust" />
<link data-trunk rel="copy-file" href="public/favicon.ico" />
<link data-trunk rel="copy-file" href="public/logo.svg" />
<link data-trunk rel="tailwind-css" href="tailwind.css" />
<base data-trunk-public-url />
</head>
<body class="min-h-screen"></body>
</html>

0 comments on commit 63e5c43

Please sign in to comment.