|
6 | 6 | <img alt="GitHub Workflow Status (with event)" src="https://img.shields.io/github/actions/workflow/status/RustLangES/RustLangES.github.io/gh-pages.yml?label=deploy" />
|
7 | 7 | </p>
|
8 | 8 |
|
9 |
| -## Requisitos Generales |
10 |
| -antes de empezar tienes que instalar estos programas |
| 9 | +## Requisitos Generales |
| 10 | +Antes de empezar es necesario tener estos programas |
11 | 11 | - [Rust](https://rust-lang.org/tools/install)
|
12 | 12 | - [NodeJs](https://nodejs.org)
|
13 | 13 |
|
14 |
| -## Requisitos Windows >= 10 |
15 |
| -- [BusyBox](https://busybox.net/) |
16 |
| - - try: `scoop install busybox` |
17 |
| - - try: `choco install busybox` |
| 14 | +## Requisitos Windows >= 10 |
| 15 | +-[BusyBox](https://busybox.net/) |
| 16 | + - Usando scoop `scoop install busybox` |
| 17 | + - Usando choco `choco install busybox` |
18 | 18 |
|
19 | 19 | ## Desarrollo
|
20 | 20 | > [!NOTE]
|
21 | 21 | > necesitas fetch git submodules para clonar los assets externos para el desarrollo
|
22 | 22 |
|
23 |
| -```sh |
24 |
| -git submodule update --init --recursive |
25 |
| -``` |
26 |
| - |
27 |
| -Now you can run: |
28 |
| - |
| 23 | +Con estos comandos podrá empezar a desarrollar |
29 | 24 | ```bash
|
| 25 | +git submodule update --init --recursive |
30 | 26 | rustup toolchain install nightly
|
31 |
| -``` |
32 |
| -```bash |
33 | 27 | rustup default nightly
|
34 |
| -``` |
35 |
| -```bash |
36 | 28 | rustup target add wasm32-unknown-unknown
|
| 29 | +npm install |
| 30 | +cargo install cargo-make |
37 | 31 | ```
|
| 32 | + |
| 33 | +### Si usas nix |
| 34 | + |
| 35 | +> [!NOTE] |
| 36 | +> Asegúrate de tener los flakes activados. |
| 37 | +
|
| 38 | +Si usas nix es bastante sencillo, solo necesitas este comando: |
38 | 39 | ```bash
|
39 |
| -npm install |
| 40 | +nix develop |
40 | 41 | ```
|
| 42 | + |
| 43 | +Ahora podemos iniciar el servidor con: |
41 | 44 | ```bash
|
42 |
| -cargo install cargo-make |
43 | 45 | cargo make serve
|
44 | 46 | ```
|
45 | 47 |
|
46 |
| -For do a commit: |
47 |
| -``` |
| 48 | +Para hacer un commit: |
| 49 | +```bash |
48 | 50 | cargo install rusty-hook
|
49 | 51 | cargo install leptosfmt --version 0.1.13
|
50 | 52 | ```
|
@@ -76,10 +78,9 @@ Agrega esto en tu `settings.json`
|
76 | 78 |
|
77 | 79 |
|
78 | 80 |
|
79 |
| -# Summary |
80 |
| - |
81 |
| -This project uses a custom branch of Leptos to be able to directly serve the output directory as a static website. |
| 81 | +# Resumen |
| 82 | +Este proyecto utiliza una rama personalizada de Leptos para poder servir directamente el directorio de salida como un sitio web estático. |
82 | 83 |
|
83 |
| -`cargo make serve` serves the div directory with watch mode and hot-reload enabled. |
84 |
| -`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. |
85 |
| -`cargo make fmt` formats with `rustfmt` and `leptosfmt`. |
| 84 | +`cargo make serve` sirve el directorio div con watch mode y hot-reload. |
| 85 | +`cargo make build` compila el proyecto en release. La salida estará en el directorio `dist` y el comando no lo servirá, sino que se cerrará. |
| 86 | +`cargo make fmt` formatea con `rustfmt` y `leptosfmt`. |
0 commit comments