create-t3-app icon indicating copy to clipboard operation
create-t3-app copied to clipboard

feat: nx plusing

Open 0x15F9 opened this issue 1 year ago • 8 comments

Is your feature request related to a problem? Please describe.

There is no generator for t3 in NX

Describe the solution you'd like to see

A plugin to easily scaffold t3 apps in nx

Describe alternate solutions

Additional information

No response

0x15F9 avatar Mar 16 '23 12:03 0x15F9

Would definitely be up to add this if someone from Narwhal or the community wants to help out :)

c-ehrlich avatar Mar 16 '23 14:03 c-ehrlich

I've just read the article by @ZackDeRose - https://dev.to/nx/create-your-own-trpc-stack-3lg7 then found this feature request. Would be nice to start a new t3 project with vite/vitest and to be able to update t3 with migrations scripts like (cypress/storybook have).

olehmelnyk avatar Apr 04 '23 17:04 olehmelnyk

A big difference between what we are doing and what something like Cypress and Storybook do is that their involvement in the app is limited to a fairly specific subset of files. Building this seems like a cool project, but I think it might work better as a separate thing from create-t3-app.

c-ehrlich avatar Apr 04 '23 19:04 c-ehrlich

Would definitely be up to add this if someone from Narwhal or the community wants to help out :)

Hey @c-ehrlich, we'd definitely be in if Nx can be helpful here! Let me know if you had something specific in mind.

A big difference between what we are doing and what something like Cypress and Storybook do is that their involvement in the app is limited to a fairly specific subset of files. Building this seems like a cool project, but I think it might work better as a separate thing from create-t3-app.

Yeah I would envision Nx's involvement might be an option to add Nx when first creating your t3 repo? If a user opts into Nx, they should be able add any nx plugins on top (so separate from create-t3-app at that point)

ZackDeRose avatar Apr 04 '23 20:04 ZackDeRose

I am a big fan of t3 and Nx. I have been using both of them in different projects. I would like the option to have both things. I can contribute this or help out. I want to know if there is someone working on it right now.

endalk200 avatar Apr 20 '23 13:04 endalk200

I have started working on this if anybody is interested.

endalk200 avatar Apr 27 '23 17:04 endalk200

Here is a link to the repo https://github.com/endalk200/create-t3-nx

So far I was able to add end-validator, api, auth, and db packages. There are many potential improvements and things to add but try it and let me know what you think.

endalk200 avatar Apr 29 '23 19:04 endalk200

I'm relatively new to using nx, so I might have some misconceptions.

nx plugin that uses t3's opinionated stack code/principles would be cool. I get that the files t3 makes are more directly involved and might be a bit more difficult to write migrations for as a result.
But on the other hand updating your already created app to newer create-t3-app versions (to take advantage of improvements here) is currently a very painful process and an nx plugin could greatly improve this.

maritz avatar May 07 '23 14:05 maritz