forge42dev / Remix-Forge

VS Code extension that allows you to generate configurable Remix code
MIT License
78 stars 6 forks source link

Initializing shadcn/ui can be slow or stuck for a long time #4

Closed mhaidarhanif closed 1 year ago

mhaidarhanif commented 1 year ago

Hi Alem,

First of all, thank you for making Remix Forge.

I've tried to generate the ESLint and Prettier config and it works fine.

I'm also trying to initialize shadcn/ui on the fresh Remix install (v1.17.1) but it just stuck like this:

image

There's an error from Output > Extension Host like this:

image

Thank you.

AlemTuzlak commented 1 year ago

Thank you @mhaidarhanif for the kind words and the submission, the output is really helpful, I will fix this asap because I already think I knowwhat the issue is!

mhaidarhanif commented 1 year ago

You're welcome @AlemTuzlak

Awesome! Looking forward to it.

mhaidarhanif commented 1 year ago

In the meantime I'm following the docs in shadcn UI: https://ui.shadcn.com/docs/installation

And then tweak the configuration a bit until it works.

image
AlemTuzlak commented 1 year ago

@mhaidarhanif published a new release, should be up in 5-10m, let me know if this fixes the issue for you, it should because I think I found the culprit

mhaidarhanif commented 1 year ago

@AlemTuzlak Thank you, it works now! Just had the time to try it again recently.

It's also nice to use the latest shadcn UI theming workflow.

Although there are some things we'll have to to fix manually:

image

This is from the fresh latest install of Remix.

AlemTuzlak commented 1 year ago

@mhaidarhanif yeah after a discussion on discord yesterday I think I will need to mark this as experimental for now, I had to sit down and rewrite almost the whole code after shad changed the CLI and I have a feeling from his tweets it will happen again so until his CLI is stable I don't think this can be stable either

AlemTuzlak commented 1 year ago

I will be updating the code to remove the tailwind stuff, for the folders I need to dee if there is a way for me to ask for permission to delete a folder when an extension doesn't have the right

mhaidarhanif commented 1 year ago

@AlemTuzlak Yes, I think for now it's okay to just let people know that this particular part is experimental and we might have to fix just a little bit.

Also several days later shadcn will release the update for the theming again.

mhaidarhanif commented 1 year ago

Looks like soon we had to be aware of the registry: https://ui.shadcn.com/docs/components/calendar

image
AlemTuzlak commented 1 year ago

Interesting, I definitely will create a new version and update the fact accordingly that this is experimental until the final stable version lands then I will go through all of it again and make it work for Remix

mhaidarhanif commented 10 months ago

Nice, it's already good by now :)

All workflows are working fine for this UI generator.

As shadcn UI also supports Remix from the website as well.