Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Aaron Fenyes
664b3d87bc Make "Play with prototype" less location-specific
All checks were successful
/ test (pull_request) Successful in 2m20s
2025-04-17 15:11:02 -07:00
7dad623947 Add a top-level run command to the "play with prototype"
All checks were successful
/ test (pull_request) Successful in 2m19s
It's very convenient for me to just stay in the top-level directory of a project. This change shows how to do that for `trunk`. I haven't figured out how to do it with `cargo test`, however. If you happen to know, feel free to edit.
2025-04-10 23:13:51 +00:00

View file

@ -37,10 +37,10 @@ The latest prototype is in the folder `app-proto`. It includes both a user inter
### Play with the prototype
1. Go into the `app-proto` folder
2. Call `trunk serve --release` to build and serve the prototype
1. From the `app-proto` folder, call `trunk serve --release` to build and serve the prototype
* *The crates the prototype depends on will be downloaded and served automatically*
* *For a faster build, at the expense of a much slower prototype, you can call `trunk serve` without the `--release` flag*
* *If you want to stay in the top-level folder, you can call `trunk serve --config app-proto [--release]`* from there instead.
3. In a web browser, visit one of the URLs listed under the message `INFO 📡 server listening at:`
* *Touching any file in the `app-proto` folder will make Trunk rebuild and live-reload the prototype*
4. Press *ctrl+C* in the shell where Trunk is running to stop serving the prototype