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

Feature: Update app generators and templates to use TypeScript for Tailwind config #1297

Open
2 tasks
brandonroberts opened this issue Aug 26, 2024 · 2 comments
Labels
accepting PRs enhancement New feature or request

Comments

@brandonroberts
Copy link
Member

Which scope/s are relevant/related to the feature request?

create-analog

Information

Tailwind allows us to use a tailwind.config.ts file instead of tailwind.config.cjs with ESM

https://tailwindcss.com/docs/configuration#using-esm-or-type-script

This updates

  • create-analog templates for latest, blog
  • nx-plugin that generates a new app

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No
@brandonroberts brandonroberts added enhancement New feature or request accepting PRs labels Aug 26, 2024
@redfox-mx
Copy link

redfox-mx commented Sep 5, 2024

Hi @brandonroberts nice to meet you!

Maybe I can try to implemente this feature, but I have some dubts... tailwind supports .js and .ts for projects mark as type: module so, should default templates be created with .ts files or user can pass arguments to generator and set template similar to npx tailwindcss init command?

note: maybe some flags must not be supported since vite projects "must" be esm

@brandonroberts
Copy link
Member Author

Welcome @redfox-mx!

The default templates should created with .ts files as we only support type: module and TypeScript is the preferred option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepting PRs enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@brandonroberts @redfox-mx and others