A CSR website template leveraging Leptos, Trunk and Tailwind
Install the Wasm target:
rustup target add wasm32-unknown-unknown
To check the installed targets:
rustup target list --installed
Install Trunk:
cargo install trunk --locked
For additional installation options, refer to the install section on Trunk's website
Install cargo-make:
cargo install --force cargo-make
For additional installation options, refer to the installation section on cargo-make repo
Simply leverage the tasks available in the Makefile.toml
.
Development
cargo make run-dev
Release
cargo make run-release
Updating gh-pages
branch
cargo make update-pages
Make sure to update the following files to match your project name.
Cargo.toml
[package]
name = "leptrun"
Makefile.toml
[tasks.build-release]
command = "trunk"
args = ["build", "--config", "Release.toml", "--public-url", "/leptrun/"]
index.html
<title>leptrun</title>