-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Rename tailwind integration options #7391
Conversation
🦋 Changeset detectedLatest commit: c893d87 The changes in this PR will be included in the next version bump. 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 |
Usually, the terminology "path" is used for types/structures that don't necessarily exist on file system and they do not necessarily belong to a physical file. Instead, the terminology "file" is used for those types/structures that read/write to file system, which means they must be derived/computed from "path" that exists. This means that when I read |
Yes! |
That's what got me! It's a path, we don't pass the actual contents 😅 |
I'm confused if you're proposing either |
Are we documenting migration steps somewhere if this is a major release with breaking changes? I think the changelog for the major release should include clear descriptions highlighting:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I would personally use configPath
, but it's just a personal preference. No need to block it
@delucis I'm currently documenting them in the changesets. There's two migration needed:
In this PR, I've tweaked the changeset for no2 to reflect the new option name ( EDIT: improved! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great so far, @bluwy! I left some suggestions below, and as Chris said, for a breaking change we'll really need in this document to show the diff example you have in the changeset.
With that section, we can do the kinds of things I've suggested below. See what you think!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @bluwy! I think these look good now!
Changes
Following up #6724 (major), this renames:
config.path
toconfigFile
config.applyBaseStyles
toapplyBaseStyles
The
config.
prefix is a bit redundant 🤔 I also choseconfigFile
overconfigPath
as that's the same name used by Vite andvite-plugin-svelte
.Testing
Existing test should pass
Docs
Updated the README to reflect the new option names.
/cc @withastro/maintainers-docs for feedback!