tailwindcss/packages/@tailwindcss-upgrade/src/codemods/template
Robin Malfait b94720aef3
Refactor codemod structure (#17484)
This PR is an internal refactor of the codemods package structure that
will make a few follow-up PRs easier.

Essentially what happens is:


1. Moved `./src/template/` into `src/codemods/template/`
2. Moved `./src/codemods` into `./src/codemods/css` (because the CSS
related codemods already)
3. Moved the migration files for the JS config, PostCSS config and
Prettier config into `./src/codemods/config/`.
4. Made filenames with actual migrations consistent by prefixing them
with `migrate-`.
5. Made sure that all the migration functions also use `migrate…`

When looking at this PR, go commit by commit, it will be easier. In a
lot of cases, it's just moving files around but those commits also come
with changes to the code just to update the imports.

[ci-all]
2025-04-01 17:12:22 +02:00
..
candidates.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
candidates.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
is-safe-migration.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-arbitrary-value-to-bare-value.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-arbitrary-value-to-bare-value.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-automatic-var-injection.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-automatic-var-injection.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-bg-gradient.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-bg-gradient.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-handle-empty-arbitrary-values.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-handle-empty-arbitrary-values.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-important.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-important.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-legacy-arbitrary-values.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-legacy-arbitrary-values.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-legacy-classes.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-legacy-classes.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-max-width-screen.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-max-width-screen.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-modernize-arbitrary-values.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-modernize-arbitrary-values.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-prefix.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-prefix.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-simple-legacy-classes.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-simple-legacy-classes.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-theme-to-var.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-theme-to-var.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-variant-order.test.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate-variant-order.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
migrate.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00
prepare-config.ts Refactor codemod structure (#17484) 2025-04-01 17:12:22 +02:00