-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
Description
Describe the problem
tauri plugin add
updates package.json
and Cargo.toml
from what I understand, but there's one more friction point for non-Rust devs: adding the plugin initialiser to the builder in lib.rs
. tauri plugin add
should do this as part of it's logic
Describe the solution you'd like
Example flow for notification plugin:
- ✅ User runs
tauri plugin add notification
- ✅ Add dependency to
package.json
andCargo.toml
(I believe this is already done today) - 🆕 Add plugin initialiser to
lib.rs
on the Tauri app builder (not done today) - ❓(optional) Prompt the user with "these are the changes to the files that are going to be made, ready to accept them?" or similar (check out the astro add CLI for how they do that)
Alternatives considered
No response
Additional context
- Discussion in the docs repo: feat: added notifications guide tauri-docs#1379 (comment)
- Astro add command: https://docs.astro.build/en/guides/integrations-guide/solid-js/#astro-add-command
- Keep in mind these two ideas:
- users who never touch Rust (and have the default Tauri rust project), how do we use this to make Tauri more approachable?
- Plugins are a much larger story in 2.0 than they were in 1.0, any DX improvements we can do that touch them are a huge win
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done