Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug][v2] tauri plugin new [name] creates examples folder #11009

Closed
rtiagom opened this issue Sep 15, 2024 · 1 comment · Fixed by #11030
Closed

[bug][v2] tauri plugin new [name] creates examples folder #11009

rtiagom opened this issue Sep 15, 2024 · 1 comment · Fixed by #11030
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@rtiagom
Copy link

rtiagom commented Sep 15, 2024

Describe the bug

Running npm run tauri plugin new [name] creates an examples folder inside tauri-plugin-[name].

Reproduction

npm run tauri plugin new [name]

Expected behavior

No examples folder. Only required files.

Full tauri info output

tauri info


[✔] Environment
    - OS: Mac OS 14.6.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.17.0
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.0.0-rc.11
    - tauri-build 🦀: 2.0.0-rc.10
    - wry 🦀: 0.43.1
    - tao 🦀: 0.30.0
    - @tauri-apps/api : 2.0.0-rc.4
    - @tauri-apps/cli : 2.0.0-rc.13




[-] Plugins
    - tauri-plugin-fs 🦀: 2.0.0-rc.4
    - @tauri-apps/plugin-fs : not installed!
    - tauri-plugin-log 🦀: 2.0.0-rc.2
    - @tauri-apps/plugin-log : not installed!
    - tauri-plugin-notification 🦀: 2.0.0-rc.4
    - @tauri-apps/plugin-notification : not installed!
    - tauri-plugin-shell 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-shell : not installed!
    - tauri-plugin-window-state 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-window-state : not installed!
    - tauri-plugin-store 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-store : not installed!
    - tauri-plugin-dialog 🦀: 2.0.0-rc.6
    - @tauri-apps/plugin-dialog : not installed!

Stack trace

No response

Additional context

No response

@rtiagom rtiagom added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 15, 2024
@amrbashir
Copy link
Member

This is an intended behavior and not a bug, as it is meant to setup a project for you to test your plugin with. However I will open a PR to add --no-example flag to disable creating examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants