-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Ensure @tailwindcss/upgrade
runs on Tailwind CSS v4 projects and is idempotent
#17717
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
Merged
+640
−323
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e326b54
add semver dependency
RobinMalfait 83bf845
do not require Tailwind CSS v3 projects anymore
RobinMalfait 2879f4e
add `version` related helpers
RobinMalfait ba315ec
conditionally apply migrations based on version number
RobinMalfait 0f97d3e
only link stylesheets to JS config files when migrating Tailwind CSS …
RobinMalfait 6bef56e
only split stylesheets when migrating Tailwind CSS v3 projects
RobinMalfait 986092a
only migrate PostCSS config when migrating Tailwind CSS v3 projects
RobinMalfait cfaeb55
only migrate JS files if they have linked config paths
RobinMalfait 2f6e368
make `jsConfigMigration` nullable
RobinMalfait f78f582
change order
RobinMalfait b6089e4
bail on empty config
RobinMalfait a2836e5
make `UserConfig` nullable
RobinMalfait c52201f
migrate source files based on Tailwind root stylesheets
RobinMalfait eacaabf
remove unused `hoistStaticGlobParts`
RobinMalfait 9be7647
make `configFilePath` also nullable
RobinMalfait bc93e2c
do not migrate `preflight` in non-v3 projects
RobinMalfait 51b2200
run prettier
RobinMalfait 6a492da
upgrade `tailwindcss` after we migrated the stylesheets
RobinMalfait c5ec584
remove test that requires Tailwind CSS v3
RobinMalfait 71f3461
make the `DesignSystem` fully nullable
RobinMalfait 6ffa7cb
mock version in local tests
RobinMalfait 4f987fa
only migrate `@layer` in v3 projects
RobinMalfait 1b53461
add migrations for newly deprecated classes
RobinMalfait 6085b47
add `:user-valid` and `:user-invalid` arbitrary variant replacements
RobinMalfait a6d4309
replace arbitrary `@media` variants
RobinMalfait 5857fd0
handle `[@media_not(…)]` variants
RobinMalfait ba4cab7
handle `@media` with single argument (e.g.: `@media print`)
RobinMalfait 0e61002
ensure we re-print the candidate in case it didn't change
RobinMalfait 37323c6
add tests to ensure upgrade tool runs on v4 and is idempotent
RobinMalfait aadc926
add test to ensure upgrade runs on v4 projects
RobinMalfait d20902f
only commit changes in dirty git repo
RobinMalfait 94ef122
Merge branch 'main' into feat/enable-codemods-on-v4-projects
RobinMalfait 7bbeb99
Merge branch 'main' into feat/enable-codemods-on-v4-projects
RobinMalfait 3d8eed9
adjust comment
RobinMalfait fff3cc0
update changelog
RobinMalfait 6b5935c
add new migration examples to upgrade test
RobinMalfait File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.