tailwindcss/tests/jit
Robin Malfait 691ed02f63
Remove AOT (#5340)
* make `jit` mode the default when no mode is specified

* unify JIT and AOT codepaths

* ensure `Object.entries` on undefined doesn't break

It could be that sometimes you don't have values in your config (e.g.: `presets: []`), this in turn will break some plugins where we assume we have a value.

* drop AOT specific tests

These tests are all covered by JIT mode already and were AOT specific.

* simplify tests, and add a few

Some of the tests were written for AOT specifically, some were missing. We also updated the way we write those tests, essentially making Tailwind a blackbox, by testing against the final output.
Now that JIT mode is the default, this is super fast because we only generate what is used, instead of partially testing in a 3MB file or building it all, then purging.

* add some todo's to make sure we warn in a few cases

* make `darkMode: 'media'`, the default

This also includes moving dark mode tests to its own dedicated file.

* remove PostCSS 7 compat mode

* update CLI to be JIT-first

* fix integration tests

This is not a _real_ fix, but it does solve the broken test for now.

* warn when using @responsive or @variants

* remove the JIT preview warning

* remove AOT-only code paths

* remove all `mode: 'jit'` blocks

Also remove `variants: {}` since they are not useful in `JIT` mode
anymore.

* drop unused dependencies

* rename `purge` to `content`

* remove static CDN builds

* mark `--purge` as deprecated in the CLI

This will still work, but a warning will be printed and it won't show up
in the `--help` output.

* cleanup nesting plugin

We don't have to duplicate it anymore since there is no PostCSS 7
version anymore.

* make sure integration tests run in band

* cleanup folder structure

* make sure nesting folder is available

* simplify resolving of purge/content information
2021-09-01 17:13:59 +02:00
..
animations.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
apply.test.css Fix missing !important when using @apply (#4854) 2021-08-27 16:08:25 +02:00
apply.test.html Fix missing !important when using @apply (#4854) 2021-08-27 16:08:25 +02:00
apply.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
arbitrary-values.test.css Ensure nested [] is allowed (#5304) 2021-08-26 13:50:39 +02:00
arbitrary-values.test.html Ensure nested [] is allowed (#5304) 2021-08-26 13:50:39 +02:00
arbitrary-values.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
basic-usage.test.css Improve tests (#5108) 2021-07-29 07:31:06 -04:00
basic-usage.test.html JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
basic-usage.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
collapse-adjacent-rules.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
collapse-adjacent-rules.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
collapse-adjacent-rules.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
color-opacity-modifiers.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
context-reuse.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
context-reuse.test.js [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
context-reuse.worker.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
custom-extractors.test.css Remove need for filter and backdrop-filter toggles (#4611) 2021-06-10 11:36:15 -04:00
custom-extractors.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
custom-extractors.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
custom-separator.test.css Generate group parent classes correctly with custom separator (#4508) 2021-05-30 15:02:55 -04:00
custom-separator.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
custom-separator.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
custom-transformers.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
dark-mode.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
extractor-edge-cases.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
import-syntax.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
import-syntax.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
import-syntax.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
important-boolean.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
important-boolean.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
important-boolean.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
important-modifier-prefix.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
important-modifier-prefix.test.html Ignore "!*" in templates (#4816) 2021-06-26 10:20:36 -04:00
important-modifier-prefix.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
important-modifier.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
important-modifier.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
important-modifier.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
important-selector.test.css JIT: Optimize universal selector usage by inlining only the relevant selectors (#4850) 2021-07-01 06:33:37 -04:00
important-selector.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
important-selector.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
kitchen-sink.test.css Improve tests (#5108) 2021-07-29 07:31:06 -04:00
kitchen-sink.test.html JIT: Add per-side border colors (#4404) 2021-05-20 13:35:39 -04:00
kitchen-sink.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
layer-at-rules.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
layer-without-tailwind.test.css Error when @layer used without matching @tailwind directive (#4335) 2021-05-12 16:58:03 -04:00
layer-without-tailwind.test.html Error when @layer used without matching @tailwind directive (#4335) 2021-05-12 16:58:03 -04:00
layer-without-tailwind.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
modify-selectors.test.css [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
modify-selectors.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
modify-selectors.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
mutable.test.css [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
mutable.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
mutable.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
opacity.test.css Remove need for transform toggle (#4604) 2021-06-10 09:15:41 -04:00
opacity.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
opacity.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
parallel-variants.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
prefix.fn.test.css [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
prefix.fn.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
prefix.fn.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
prefix.test.css Skip escaped commas when splitting selector (#5239) 2021-08-17 20:06:31 -04:00
prefix.test.html Skip escaped commas when splitting selector (#5239) 2021-08-17 20:06:31 -04:00
prefix.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
raw-content.test.css Fix stacking context issue (#4700) 2021-06-18 16:31:14 +02:00
raw-content.test.html [JIT] Add support for "raw" purge content (#4272) 2021-05-07 08:58:58 -04:00
raw-content.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
relative-purge-paths.test.html Improve tests (#5108) 2021-07-29 07:31:06 -04:00
relative-purge-paths.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
resolve-defaults-at-rules.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
responsive-and-variants-atrules.test.css Remove need for filter and backdrop-filter toggles (#4611) 2021-06-10 11:36:15 -04:00
responsive-and-variants-atrules.test.html [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
responsive-and-variants-atrules.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
svelte-syntax.test.css Remove need for filter and backdrop-filter toggles (#4611) 2021-06-10 11:36:15 -04:00
svelte-syntax.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
svelte-syntax.test.svelte [WIP] Unify JIT and AOT code paths (#4188) 2021-04-30 10:58:40 -04:00
tailwind-screens.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00
variants.test.css Improve tests (#5108) 2021-07-29 07:31:06 -04:00
variants.test.html Add peer variant (#4556) 2021-06-04 10:32:49 -04:00
variants.test.js Remove AOT (#5340) 2021-09-01 17:13:59 +02:00