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

Changes for create-tauri-app@3 #258

Closed
4 tasks
amrbashir opened this issue Dec 10, 2022 · 10 comments · Fixed by #284
Closed
4 tasks

Changes for create-tauri-app@3 #258

amrbashir opened this issue Dec 10, 2022 · 10 comments · Fixed by #284

Comments

@amrbashir
Copy link
Member

amrbashir commented Dec 10, 2022

image

  • Remove unpopular templates and keep only 5 Node.js-based templates at a time.
  • Flavor of templates which will be mostly javascript and typescript will be prompted separately after choosing one of the templates
  • Add more Rust-based templates, leptos and dioxus seems like good-candidates, however leptos is not even 0.1 yet and dioxus already offers a desktop framework of their own.
  • --alpha and --mobile options
@xhayper
Copy link

xhayper commented Dec 17, 2022

I think Vite should be added to the template too, as it can be a base for adding other framework, and Vite is a really popular build tool. or you could swap Vite for webpack since it's more popular than Vite.

@FabianLars
Copy link
Member

All nodejs based templates use or will use vite

@xhayper
Copy link

xhayper commented Dec 17, 2022

Thank you for the clarification!

@glyh
Copy link

glyh commented Jan 5, 2023

@kwrooijen could you unarchive the template https://github.com/kwrooijen/tauri-cljs, given this?

@kwrooijen
Copy link

@glyh Sure, I'll take a look later today. I'd still need to update tauri within the https://github.com/kwrooijen/tauri-cljs project, otherwise it won't work.

@simonhyll
Copy link
Sponsor Contributor

Wouldnt it be better with more templates but a better CLI for selecting which one to use?

I'm thinking kinda like:
Javascript/Typescript/Rust - Typescript
React/Vue/Svelte - Vue
Nuxt/Vue CLI - Nuxt

I feel like removing templates makes it harder for people to get started, I've already had to help 2 people get started with Nuxt. More templates means easier to get developers into Tauri, and I for one would certainly welcome easily setting up new apps in my chosen framework, and dont see why other frameworks get "special treatment"

One alternative for me ofc is to offer my own template project, but it feels weird that the official version cuts down on templates, especially when they are already developed

@FabianLars
Copy link
Member

@simonhyll afaik the idea is to compensate the reduced amount of templates with this: #3.

I think the main problem here is the workload/maintenance burden idk

@amrbashir
Copy link
Member Author

@simonhyll even after refining the selection flow and separating it into multiple phases, you will still end up with so many frameworks to maintain (keep in mind that in the future, tauri will support more languages other than Rust and each lang will bring their set of templates as well.

One alternative for me ofc is to offer my own template project, but it feels weird that the official version cuts down on templates, especially when they are already developed.

This is fine, and CTA could potentially download and use that on-demand like how crate-vite calls to create-vite-extra. Also, I want to encourage more templates to be submitted to awesome-tauri repo instead of contributing them to the tool.

@ModProg
Copy link

ModProg commented Jan 23, 2023

As leptos had it's first release now, would you merge a PR adding a leptos template or would you rather wait a little longer.

@amrbashir amrbashir linked a pull request Jan 23, 2023 that will close this issue
19 tasks
@amrbashir
Copy link
Member Author

amrbashir commented Jan 23, 2023

@ModProg the linked PR has a template for leptos, the PR is on hold for now until the next alpha release of tauri but for now you can try it from git using:

cargo install create-tauri-app --git https://github.com/tauri-apps/create-tauri-app --branch 'cta@3'
cargo create-tauri-app

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 a pull request may close this issue.

7 participants