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

Option for tailwindcss while creating project #10325

Closed
bobbymannino opened this issue Jul 6, 2023 · 8 comments
Closed

Option for tailwindcss while creating project #10325

bobbymannino opened this issue Jul 6, 2023 · 8 comments

Comments

@bobbymannino
Copy link

Describe the problem

It would be a nice addition to have an option where there is for prettier but for tailwindcss. Making many projects and then having to go through the process is slow and annoying. Similar to having to change the @sveltejs/adapter-auto to one you like. having these options in the 'create svelte' script would be awesome

Describe the proposed solution

As above

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

@dummdidumm
Copy link
Member

You should be able to do this today using the community package svelte-add running the command npx svelte-add@latest tailwindcss: https://github.com/svelte-add/tailwindcss

@Conduitry
Copy link
Member

This has come up a few times before, in #9806, #3025, maybe other places. Is our position on this changing?

I'd strongly advise against adding CSS framework X to the create-svelte CLI, because we will then get people asking for CSS framework Y.

@bobbymannino
Copy link
Author

This is true. but i mean having the convenience of it being an option when creating a svelte package. and @Conduitry you are totally right. if you think it would be unwise to ill close the issue

@ghostdevv
Copy link
Member

Perhaps instead we can point to svelte-add in create svelte? That way it's easier for people who don't know/forget about svelte add to start quickly, and we don't run into people asking for X & Y

@bobbymannino
Copy link
Author

That’s a good solution. What about having options in the create script for certain adapters. For me I always am using vercel so it would save me changing it each project?

@geoffrich
Copy link
Member

Perhaps instead we can point to svelte-add in create svelte? That way it's easier for people who don't know/forget about svelte add to start quickly, and we don't run into people asking for X & Y

We already do link to svelte-add after the wizard complete:

Screenshot 2023-07-07 at 7 56 34 AM

Having adapter options in the create script would be a separate request, but I don't think it's something we'd want to add -- whatever options we add to create-svelte is one more thing people will need to interact with/understand before setting up a new Svelte project, so we want to keep it minimal.

@bobbymannino
Copy link
Author

i understand both points yes. shall i close this issue then?

@ghostdevv
Copy link
Member

We already do link to svelte-add after the wizard complete:

Oh amazing!

I understand both points yes. shall i close this issue then?

Yea we can close this for now 🙏

@ghostdevv ghostdevv closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants