-
Notifications
You must be signed in to change notification settings - Fork 370
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
feat(tailwindcss): generate tailwind config file when run new command #4524
feat(tailwindcss): generate tailwind config file when run new command #4524
Conversation
🦋 Changeset detectedLatest commit: 4707f2f The changes in this PR will be included in the next version bump. This PR includes changesets to release 268 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4524 +/- ##
==========================================
- Coverage 57.59% 51.99% -5.61%
==========================================
Files 672 673 +1
Lines 17794 18440 +646
Branches 3876 4276 +400
==========================================
- Hits 10249 9587 -662
- Misses 6934 8162 +1228
- Partials 611 691 +80 ☔ View full report in Codecov by Sentry. |
Summary
Ref: #4509
🤖 Generated by Copilot at 4707f2f
This pull request adds TypeScript support and a tailwind config file to the
tailwindcss-generator
package. It also updates the changeset file to document the new feature and provide a Chinese translation.Details
🤖 Generated by Copilot at 4707f2f
@modern-js/tailwindcss-generator
package (link)Language
enum andisTsProject
utility function from@modern-js/generator-common
and@modern-js/generator-utils
packages (link)handleTemplateFile
function to select tailwind config file template based on project language (link)tailwind.config.js
file tojs-template
folder with CommonJS module syntax and JSDoc type annotation (link)tailwind.config.ts
file tots-template
folder with ES module syntax and TypeScript type import and assertion (link)Related Issue
Checklist
pnpm run change
.