Closed Goodjooy closed 1 day ago
When I migrated from V1 to V2, I had to add a lot of plugins to package.json and Cargo.toml, which was a bit tedious.
package.json
Cargo.toml
Is it possible to have an additional command that adds relevant dependencies to both package.json and src-tauri/Cargo.toml.
src-tauri/Cargo.toml
For example, if you have the command cargo tauri add to add a plugin, and now I want to add the plugin cli, the command would be :
cargo tauri add
cli
cargo tauri add cli@2
Then the command will perform the following actions:
@tauri-app/tauri-plugin-cli
tauri-plugin-cli
No response
cargo tauri add cli@2 - well, you should have tried running that one 😅 What you're asking for is implemented in the v2 cli and you even got the syntax right-ish (maybe omit the @2 if npm complains).
@2
Describe the problem
When I migrated from V1 to V2, I had to add a lot of plugins to
package.json
andCargo.toml
, which was a bit tedious.Describe the solution you'd like
Is it possible to have an additional command that adds relevant dependencies to both
package.json
andsrc-tauri/Cargo.toml
.Example
For example, if you have the command
cargo tauri add
to add a plugin, and now I want to add the plugincli
, the command would be :Then the command will perform the following actions:
@tauri-app/tauri-plugin-cli
topackage.json
.tauri-plugin-cli
tosrc-tauri/Cargo.toml
.Alternatives considered
No response
Additional context
No response