chen-rn / CUA

(deprecateed) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)
https://cua-demo.vercel.app
MIT License
1.01k stars 67 forks source link

[feature-request] Tauri example #24

Closed timothymiller closed 1 year ago

timothymiller commented 1 year ago

I'm no fan of fedora wearing weirdos, but now that Tamagui Studio is a thing (that uses Tauri under the hood), it would be nice to see the desktop as yet another supported platform by create-universal-app.

chen-rn commented 1 year ago

Oh whoa! I didn't know Studio was released, I'll have to try it out this weekend :)

Re: Desktop The RN for Desktop library maintained by MS doesn't seem super well maintained on the mac side. But we can definitely do something like Tauri, given that it's just the react app in a webview.

I've actually never played around with Tauri, but I can look at how Tamagui studio is set up and set one up for CUA. If it's easy, we might as well have one!

A lot of exciting stuff happening here! I'm also very open to PRs if you're up for a task!

chen-rn commented 1 year ago

Another thing that might be nice is storybook, but I'll have to play around with that as well!

albbus-stack commented 1 year ago

@timothymiller I've implemented the basic stuff for Tauri in the nextjs folder. Now it's available in the tauri branch of the repo, please test this yourself if you can as I cannot right now, as explained in this PR.

albbus-stack commented 1 year ago

@timothymiller have you tried it out? I forgot to tell you how to test it 😅. Just run yarn desktop in the root of the project.

timothymiller commented 1 year ago

Yes it works @albbus-stack. Really cool stuff! I added turbo integration to your branch.

albbus-stack commented 1 year ago

@timothymiller I've fixed a couple of things and now it's up on the main branch! You can now build the Tauri app with yarn build-desktop. #35 #37

octalpixel commented 1 year ago

Dumb question, but what is Tamagui Studio ? Couldnt find it