tailwindcss/packages/@tailwindcss-upgrade/src/codemods
Philipp Spiess 3da49f9837
Migrate static plugins with options to CSS (#14700)
This PR extends our JS configuration to CSS migration by also allowing `plugins` with options.  

An example of such config would be:

```js
import { type Config } from 'tailwindcss'
import myPlugin from "./myPlugin";

export default {
  plugins: [
    myPlugin({
      class: "tw",
    }),
  ],
} satisfies Config;
```

If the option object contains only values allowed in our CSS API, we can convert this to CSS entirely:

```css
@plugin './myPlugin' {
  class: 'tw';
}
```
2024-10-18 15:16:27 +02:00
..
format-nodes.test.ts Add CSS codemod for missing @layer (#14504) 2024-09-24 16:32:50 +00:00
format-nodes.ts Migrate static plugins with options to CSS (#14700) 2024-10-18 15:16:27 +02:00
migrate-at-apply.test.ts Ensure upgrade tool has access to a JS config (#14597) 2024-10-07 18:02:28 +02:00
migrate-at-apply.ts Ensure upgrade tool has access to a JS config (#14597) 2024-10-07 18:02:28 +02:00
migrate-at-layer-utilities.test.ts Migrate static plugins with options to CSS (#14700) 2024-10-18 15:16:27 +02:00
migrate-at-layer-utilities.ts Migrate utilities in CSS files imported into layers (#14617) 2024-10-10 15:44:04 +02:00
migrate-config.ts Migrate static plugins with options to CSS (#14700) 2024-10-18 15:16:27 +02:00
migrate-media-screen.test.ts Migrate @media screen(…) (#14603) 2024-10-10 15:06:53 +02:00
migrate-media-screen.ts Reset default @theme values for non extend JS theme config (#14672) 2024-10-16 16:06:09 +02:00
migrate-missing-layers.test.ts Ensure CSS before a layer stays unlayered (#14596) 2024-10-04 12:47:05 +02:00
migrate-missing-layers.ts Inject @config "..." when a tailwind.config.{js,ts,...} is detected (#14635) 2024-10-10 14:02:42 +00:00
migrate-tailwind-directives.test.ts Ensure upgrade tool has access to a JS config (#14597) 2024-10-07 18:02:28 +02:00
migrate-tailwind-directives.ts Ensure upgrade tool has access to a JS config (#14597) 2024-10-07 18:02:28 +02:00
migrate-theme-to-var.test.ts Migrate theme(…) to var(…) in CSS (#14695) 2024-10-17 11:50:27 +02:00
migrate-theme-to-var.ts Migrate theme(…) to var(…) in CSS (#14695) 2024-10-17 11:50:27 +02:00