Skip to content
/ leptrun Public template

A CSR website template leveraging Leptos, Trunk and Tailwind.

Notifications You must be signed in to change notification settings

lpnh/leptrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 leptrun

A CSR website template leveraging Leptos, Trunk and Tailwind

Setup

Compiling to WebAssembly

Install the Wasm target:

rustup target add wasm32-unknown-unknown

To check the installed targets:

rustup target list --installed

Trunk

Install Trunk:

cargo install trunk --locked

For additional installation options, refer to the install section on Trunk's website

Cargo-make

Install cargo-make:

cargo install --force cargo-make

For additional installation options, refer to the installation section on cargo-make repo

Usage

Running it

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

Renaming it

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>