mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix getting started docs for windows users (#3703)
* Add note for trunk windows bug
This commit is contained in:
parent
4a28de483a
commit
57b29f20a4
@ -8,12 +8,26 @@ the boilerplate needed for a basic Yew app or manually set up a small project.
|
|||||||
## Using a starter template
|
## Using a starter template
|
||||||
|
|
||||||
Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate) by following their installation instructions
|
Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate) by following their installation instructions
|
||||||
then run the following command:
|
then take the following steps:
|
||||||
|
|
||||||
|
### Checkout and customize project
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
|
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run project
|
||||||
|
|
||||||
|
```shell
|
||||||
|
trunk serve
|
||||||
|
```
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
Trunk [has a bug](https://github.com/trunk-rs/trunk/issues/852) on windows when `trunk serve` command fails. To workaround the issue you can run `trunk build` before running `trunk serve`.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Setting up the application manually
|
## Setting up the application manually
|
||||||
|
|
||||||
### Create Project
|
### Create Project
|
||||||
|
|||||||
@ -8,12 +8,26 @@ the boilerplate needed for a basic Yew app or manually set up a small project.
|
|||||||
## Using a starter template
|
## Using a starter template
|
||||||
|
|
||||||
Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate) by following their installation instructions
|
Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate) by following their installation instructions
|
||||||
then run the following command:
|
then take the following steps:
|
||||||
|
|
||||||
|
### Checkout and customize project
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
|
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run project
|
||||||
|
|
||||||
|
```shell
|
||||||
|
trunk serve
|
||||||
|
```
|
||||||
|
|
||||||
|
:::note
|
||||||
|
|
||||||
|
Trunk [has a bug](https://github.com/trunk-rs/trunk/issues/852) on windows when `trunk serve` command fails. To workaround the issue you can run `trunk build` before running `trunk serve`.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Setting up the application manually
|
## Setting up the application manually
|
||||||
|
|
||||||
### Create Project
|
### Create Project
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user