437 Commits

Author SHA1 Message Date
depfu[bot]
2bef641909 Update @swc/cli to version 0.1.51 2021-10-16 10:58:31 +00:00
depfu[bot]
c4c10d55d4 Update jest-diff to version 27.2.5 2021-10-15 14:14:00 +00:00
depfu[bot]
35a5e64bf6 Update esbuild to version 0.13.4 2021-10-12 14:58:39 +00:00
depfu[bot]
579e922fc8 Update glob-parent to version 6.0.2 2021-10-06 22:27:47 +00:00
depfu[bot]
7b94feaef3 Update jest to version 27.2.4 2021-10-05 10:27:50 +00:00
depfu[bot]
778bd37838 Update is-glob to version 4.0.3 2021-10-03 22:57:43 +00:00
depfu[bot]
abad3b1a10 Update @swc/core to version 1.2.92 2021-10-02 08:13:04 +00:00
Adam Wathan
ac98ff4753 3.0.0-alpha.1 2021-10-01 11:56:49 -04:00
depfu[bot]
55cf56476e Update autoprefixer to version 10.3.6 2021-10-01 15:42:56 +00:00
depfu[bot]
c5c644f315 Update postcss to version 8.3.8 2021-09-29 06:13:44 +00:00
Robin Malfait
c03f9ad600
Improve public API (#5526)
* introduce `public` folder

This can contain all of the `public` functions we want to expose.
This will be a bit nicer for example when you want to use
internal/private functions (we use some in the vscode intellisense
plugin).

* use public `resolveConfig` function

* expose resolveConfig in the root

This will use the resolveConfig we expose from the `public` folder. We
can probably generate these as well.

* make `colors` public

* make `default config` public

* make `default theme` public

* make `create plugin` public

* update to public paths

* remove `@tailwindcss/aspect-ratio` from tests

This should be tested in its own repo instead.

* remove `@tailwindcss/aspect-ratio` as a dependency

* drop `Build` step from CI

The build step is not a prerequisite anymore for running the tests. When
we want to release a new (insiders) release, the `prepublishOnly` step
will be executed for us.

Before this change, it would have been executed twice:
- Once before the tests
- Once before the actual release

* improve paths for caching purposes

* add pretest scrip for generating the plugin list

Now that we can use `SWC`, automatically generating the plugin list
before running the tests is super fast and you don't even have to think
about it anymore!
2021-09-26 12:44:13 +02:00
Sachin Raja
00b6ed0a74
bundle cli peer dependencies with esbuild (#5595) 2021-09-24 21:57:17 -04:00
Adam Wathan
790b2b7ba0 Update version in package.json 2021-09-24 13:45:02 -04:00
Robin Malfait
164c3d6b50
Switch to swc from babel (#5593)
* refactor: switch to swc from babel

* bump to latest versions of swc

Co-authored-by: Sachin Raja <sachinraja2349@gmail.com>
2021-09-24 19:17:19 +02:00
depfu[bot]
77d124368a Update jest-diff to version 27.2.0 2021-09-24 10:13:34 +00:00
depfu[bot]
f2bc50accf
Update @vercel/ncc to version 0.31.1 (#5547)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-09-22 15:52:10 -04:00
depfu[bot]
f4635e0d42 Update prettier to version 2.4.1 2021-09-17 07:35:41 +00:00
depfu[bot]
e36d242c8d Update @babel/core to version 7.15.5 2021-09-09 21:58:43 +00:00
Brad Cornes
4919cbfbb8
Update color parsing and formatting (#5442)
* Replace `culori` with simple color parser

* Use space-separated color syntax

* Update default color values to use space-separated syntax

* Update separator regex

* Fix tests

* add tests for the new `color` util

Also slightly modified the `color` util itself to take `transparent`
into account and also format every value as a string for consistency.

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-09-09 16:15:53 +02:00
depfu[bot]
9371cce670
Update eslint-plugin-prettier to version 4.0.0 (#5409)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-09-07 21:04:48 -04:00
Robin Malfait
920f21264c
Simplify negate value (#5389)
* simplify `negateValue`

Co-authored-by: Brad Cornes <bradlc41@gmail.com>

* ensure we have the exact same behaviour

* Simplify/loosen regex to be more future-proof

Co-authored-by: Brad Cornes <bradlc41@gmail.com>
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-09-06 14:26:32 -04:00
Brad Cornes
f86c16b1ed
Update package files config (#5405) 2021-09-06 14:26:24 -04:00
Robin Malfait
a34bd62bb6
Remove lodash (#5390)
* remove `lodash` usage

* implement custom cloneDeep to replace lodash's

* drop lodash in processPlugins

* add `toPath` utility

* add `tap` utility

* add `cloneDeep` utility

* drop lodash in evaluateTailwindFunctions

* add `defaults` utility

* drop lodash from `resolveConfig`

* remove `lodash` dependency
2021-09-06 14:15:10 -04:00
depfu[bot]
776a5aea31 Update all of jest to version 27.1.0 2021-09-03 10:18:18 +00:00
depfu[bot]
a382cde7c5 Update jest-diff to version 27.1.0 2021-09-03 10:13:39 +00:00
Jonathan Reinink
154d99054b
Inline modern-normalize, consolidate with preflight (#5358) 2021-09-01 14:54:25 -04:00
Hunter Tunnicliff
c52cd713b0
Replace color with culori 2021-09-01 17:28:25 +02:00
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
Robin Malfait
267f20c47e
2.2.9 2021-08-30 13:01:08 +02:00
Robin Malfait
97804a8950
Pin clean css version (#5338)
* pin clean-css to version `5.1.4`

* update fixtures
2021-08-30 13:00:50 +02:00
depfu[bot]
442c6d0d27 Update cosmiconfig to version 7.0.1 2021-08-28 23:03:11 +00:00
depfu[bot]
9ccb280b6d Update autoprefixer to version 10.3.3 2021-08-28 18:47:53 +00:00
depfu[bot]
e316dcb184 Update eslint-plugin-prettier to version 3.4.1 2021-08-27 22:18:32 +00:00
Robin Malfait
211f40b175
2.2.8 2021-08-27 10:37:43 +02:00
depfu[bot]
5f02fe4811 Update clean-css to version 5.1.5 2021-08-26 10:03:09 +00:00
depfu[bot]
048a29ef34 Update cssnano to version 5.0.8 2021-08-25 10:19:37 +00:00
depfu[bot]
ff71165538 Update arg to version 5.0.1 2021-08-24 02:31:30 +00:00
depfu[bot]
4daa86a293 Update @vercel/ncc to version 0.29.2 2021-08-21 22:27:25 +00:00
depfu[bot]
d8b89003a9
Update @vercel/ncc to version 0.29.0 (#5068)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-08-20 22:43:40 -04:00
depfu[bot]
b54d3fc6dd
Update color to version 4.0.1 (#5205)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-08-20 22:43:08 -04:00
depfu[bot]
d13b0e1085 Update node-emoji to version 1.11.0 2021-08-18 09:18:48 +00:00
depfu[bot]
0bb3e74f82 Update all of babel7 to version 7.15.0 2021-08-17 18:34:04 +00:00
depfu[bot]
ca6900dc35 Update eslint to version 7.32.0 2021-08-14 22:18:42 +00:00
depfu[bot]
4d758ed624 Update chalk to version 4.1.2 2021-08-06 12:33:00 +00:00
depfu[bot]
66b9259a5d Update clean-css to version 5.1.4 2021-08-05 10:03:02 +00:00
depfu[bot]
2eb7b4e5f1 Update postcss-nested to version 5.0.6 2021-08-04 10:49:11 +00:00
depfu[bot]
e233288c4d Update glob-parent to version 6.0.1 2021-07-31 10:55:33 +00:00
depfu[bot]
e369dbd8ed Update all of babel7 to version 7.14.8 2021-07-31 10:54:52 +00:00
depfu[bot]
370ea8b3f2 Update postcss to version 8.3.6 2021-07-31 10:54:44 +00:00
depfu[bot]
4f89bbf713 Update cssnano to version 5.0.7 2021-07-30 22:41:14 +00:00