Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reworked the command subsystem. Commands are now implemented as traits with default
template methods and just need to fill out the customized parts (vs duplicating most of the code).
Improved the user feedback, made the output consistent across commands.
Fixed error handling so any download and binary executable resolution problems are exposed (vs being silently swallowed).
Some Highlights:
cargo leptos
will now check (once a day) for new versions of tools likesass
,tailwindcss
,wasm-ops
via the GitHub release API and inform the user of a newer available version. This happens lazilyfor commands when they are used, but only once on startup and no more frequently than once a day.
1.0, version_112, v3.3.1, etc
are consistently handled and compared. This lays the foundation for thesemver
style version requests.LEPTOS_TAILWIND_VERSION=v3.3.3 cargo leptos watch --hot-reload -vv
. The binary willbe downloaded transparently and cached. Switching between tool versions has never been easier!
Added the following env vars:
Things I'd Like to Do:
semver
style requests, so e.g. a patch-compatible version can be declared as desired and the updates are happening easily and transparently.semver
will ensure we pick up only compatible upgrades, unless instructed otherwise by the user.P.S.: I'm not claiming to have extensive idiomatic Rust knowledge, feel free to propose all kinds of improvements to the code style.