Skip to content

fix: correct local styles path and improve setup resilience - #86

Open
nglmercer wants to merge 4 commits into
RustLangES:riirfrom
nglmercer:riir
Open

fix: correct local styles path and improve setup resilience#86
nglmercer wants to merge 4 commits into
RustLangES:riirfrom
nglmercer:riir

Conversation

@nglmercer

Copy link
Copy Markdown

Resumen

  • Corrige la ruta de @rustlanges/styles en package.json (file:../design-system-components/stylesfile:./design-system-components/styles), que impedía ejecutar el proyecto.
  • setup ahora limpia node_modules antes de reinstalar para evitar estados inconsistentes.
  • postinstall ya no falla si bundled.css no está construido; muestra un mensaje con el comando correcto.
  • Agrega build:css para reconstruir los estilos cuando sea necesario.

Motivación

La ruta incorrecta del paquete de estilos rompía cargo run / pnpm run desde el primer momento. Este arreglo resuelve el problema de raíz y mejora los mensajes de error para futuras configuraciones.

Add `make doctor` / `cargo make doctor` to diagnose missing toolchains,
submodules, and bundled assets. Fail fast with helpful errors when
`extras`/`design-system-components` submodules or `bundled.css` are missing.
Improve `cargo run` error message when `ssr` feature is not enabled.
Remove stale node_modules before reinstall, fix local styles path,
and make postinstall skip gracefully when bundled.css is not built.
Added a comment to indicate route generation in Leptos App.

@MarioYellowy MarioYellowy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is not necessary at all, the main problem is the redundant use of task runners in the project, that explain why it works when you use only make commands, but fails with cargo make commands, unfortunately, in the last pull request was not updated the part of the dependencies that use, that explain why to the user @gg0074x marks a fails in the leptos dependencies, in addition, the project of design system components needs to be updated as well, when that project gets updated, the current problem here shouldn't be present, although some additions in the readme file look fine, but not all, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants