antes de empezar tienes que instalar estos programas
- BusyBox
- try:
scoop install busybox
- try:
choco install busybox
- try:
Note
necesitas fetch git submodules para clonar los assets externos para el desarrollo
git submodule update --init --recursive
Now you can run:
rustup toolchain install nightly
rustup default nightly
rustup target add wasm32-unknown-unknown
npm install
cargo install cargo-make
cargo make serve
For do a commit:
cargo install rusty-hook
cargo install leptosfmt --version 0.1.13
Agrega esto en tu settings.json
{
"emmet.includeLanguages": {
"rust": "html",
"*.rs": "html"
},
"tailwindCSS.includeLanguages": {
"rust": "html",
"*.rs": "html"
},
"files.associations": {
"*.rs": "rust"
},
"editor.quickSuggestions": {
"other": "on",
"comments": "on",
"strings": true
},
"css.validate": false
}
This project uses a custom branch of Leptos to be able to directly serve the output directory as a static website.
cargo make serve
serves the div directory with watch mode and hot-reload enabled.
cargo make build
builds the project in release. The output will be in the dist
directory and the command will not serve it, but quit instead.
cargo make fmt
formats with rustfmt
and leptosfmt
.