543 Commits

Author SHA1 Message Date
depfu[bot]
8ba3d61a82 Update lilconfig to version 2.0.5 2022-03-30 23:43:26 +00:00
depfu[bot]
e361b3accd Update @swc/cli to version 0.1.56 2022-03-28 12:28:33 +00:00
depfu[bot]
4bd8313202 Update @swc/core to version 1.2.160 2022-03-26 14:28:39 +00:00
Adam Wathan
b2dd6ffa42
Remove autoprefixer as peer-dependency (#7949)
* Remove autoprefixer as peer-dependency

* Update lock file

* Update changelog
2022-03-25 09:46:23 -04:00
depfu[bot]
042482a4b0 Update postcss to version 8.4.12 2022-03-24 22:28:42 +00:00
depfu[bot]
f3a629a619 Update prettier to version 2.6.0 2022-03-23 04:44:19 +00:00
depfu[bot]
857299e2bd Update autoprefixer to version 10.4.4 2022-03-22 18:43:50 +00:00
Robin Malfait
407a5c368c
Add TypeScript types for the tailwind.config.js file (#7891)
* add generate-types script

This script will generate the full list of core plugins, which will
allow you to get code completion for the `corePlugins` section.

It will also generate all the colors (and deprecated colors) which is
used in multiple places in the config.

* add types for the `tailwind.config.js` config file

* annotate stubs with a JSDoc pointing to the types

* add types to package.json

- Updated the files to make sure that the types are being published
- Add a `types` section in the `package.json`, otherwise your editor by
  default will look for the `DefinitelyTyped` types which got me really
  confused for a second.
- Added some scripts to make sure that the generation of types happens
  when needed (before tests and before building). This way you never
  ever have to think about generating them when working on Tailwind CSS
  internals.

* re-export types top-level

Having a `colors.d.ts` next to the `colors.js` file allows us to type
the `colors.js` file and your editor will pickup the types from
`colors.d.ts`.

* also publish generated types

* update changelog

* enable TypeScript only when using `init --types` for now

* update tests to verify that `--types` works
2022-03-22 10:24:28 +01:00
depfu[bot]
0578f7b5b5 Update eslint-config-prettier to version 8.5.0 2022-03-19 10:59:29 +00:00
depfu[bot]
38c84407c1 Update eslint to version 8.11.0 2022-03-18 23:45:19 +00:00
depfu[bot]
0dcbca5b9b Update cssnano to version 5.1.4 2022-03-18 20:13:50 +00:00
Jean-Félix
c245d94e41
Update cssnano: 5.0.17 → 5.1.3 (minor) (#7818) 2022-03-13 14:21:50 -04:00
depfu[bot]
f980ca4ca4 Update esbuild to version 0.14.25 2022-03-11 06:14:11 +00:00
depfu[bot]
3581d7bca0 Update prettier-plugin-tailwindcss to version 0.1.8 2022-03-09 11:13:38 +00:00
depfu[bot]
deee3b1995 Update @swc/jest to version 0.2.20 2022-03-04 09:59:08 +00:00
depfu[bot]
25c93cacde Update postcss to version 8.4.7 2022-03-03 22:29:15 +00:00
Bogdan Chadkin
f31c4ee4cf
Replace cosmiconfig with lilconfig (#6038)
* Replace cosmiconfig with lilconfig

It's already replaced in postcss-load-config

See https://github.com/postcss/postcss-load-config/blob/main/package.json#L26

* Manually restore parse-json in lockfile removed by npm conflict resolver

* Revert `postcss` version change

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-03-01 18:27:56 +00:00
depfu[bot]
e302ef1a0d Update eslint-config-prettier to version 8.4.0 2022-02-26 10:59:10 +00:00
depfu[bot]
bbafc8e324 Update eslint to version 8.9.0 2022-02-25 21:29:56 +00:00
depfu[bot]
d3e754adb4
Update object-hash to version 3.0.0 (#7657)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-02-25 12:17:16 -05:00
Bogdan Chadkin
2dec5649c9
Replace chalk with picocolors (#6039)
* Replace chalk with picocolors

Already used in latest postcss, autoprefixer and browserslist versions.

See https://github.com/alexeyraspopov/picocolors

* Update `dim` function

Co-authored-by: Brad Cornes <bradlc41@gmail.com>
2022-02-24 16:37:31 +00:00
Jordan Pittman
b94d565eb6
Preserve source maps for generated CSS (#7588)
* Preserve source maps for `@apply`

* Overwrite the source for all cloned descendants

* Preserve source maps when expanding defaults

* Verify that source maps are correctly generated

* Update changelog
2022-02-23 11:24:54 -05:00
depfu[bot]
9effea5d28 Update cssnano to version 5.0.17 2022-02-20 14:44:29 +00:00
depfu[bot]
23b1b301a1 Update postcss-load-config to version 3.1.3 2022-02-17 14:58:42 +00:00
Robin Malfait
93e0fdf29f
3.0.23 2022-02-16 12:20:14 +01:00
depfu[bot]
09d151f3f9 Update esbuild to version 0.14.21 2022-02-14 17:43:53 +00:00
depfu[bot]
0c5af6fed4 Update jest to version 27.5.1 2022-02-12 10:25:12 +00:00
depfu[bot]
c13afd38aa Update jest-diff to version 27.5.1 2022-02-12 10:15:18 +00:00
Jordan Pittman
b26ffa0581 3.0.22 2022-02-11 10:32:30 -05:00
Jordan Pittman
23661cfef0
Temporarily move postcss to dependencies (#7424)
* Temporarily move postcss to dependencies

This is unfortunate but upgrading postcss-js caused postcss to not be installed at all. This is fine except in this case of NPM <= 6 when running npx tailwindcss init, or yarn v1, or npm 7/8 with legacy peer deps behavior and doing a similar thing. Deduping will still allow the user to install postcss and upgrade it and Tailwind CSS will pick it up. A more permanent solution may involve hijacking require or something similar.

* Update changelog
2022-02-11 10:08:54 -05:00
Jordan Pittman
9f119e503e 3.0.21 2022-02-10 18:08:59 -05:00
Jordan Pittman
15e51e9e54
Move prettier plugin to dev dependencies (#7418)
* Move prettier plugin to dev dependencies

* Update changelog
2022-02-10 18:03:53 -05:00
Robin Malfait
99a8ab118d
3.0.20 2022-02-10 18:16:01 +01:00
Robin Malfait
96d4ce2516
Expose context.sortClassList(classes) (#7412)
* add prettier-plugin-tailwindcss

This will use the prettier plugin in our tests as well, yay consistency!

* ensure that both `group` and `peer` can't be used in `@apply`

This was only configured for `group`

* expose `sortClassList` on the context

This function will be used by the `prettier-plugin-tailwindcss` plugin,
this way the sorting happens within Tailwind CSS itself adn the
`prettier-plugin-tailwindcss` plugin doesn't have to use internal /
private APIs.

The signature looks like this:
```ts
function sortClassList(classes: string[]): string[]
```

E.g.:
```js
let sortedClasses = context.sortClassList(['p-1', 'm-1', 'container'])
```

* update changelog

* add sort test for utilities with the important modifier e.g.: `!p-4`
2022-02-10 18:06:41 +01:00
depfu[bot]
5ea67b0a86 Update postcss to version 8.4.6 2022-02-08 11:58:56 +00:00
Jordan Pittman
2250e1bacd 3.0.19 2022-02-07 15:58:01 -05:00
Adam Wathan
520d3542ce
Update package.json 2022-02-05 15:21:34 -05:00
depfu[bot]
94ead15f27 Update eslint to version 8.8.0 2022-02-04 21:30:09 +00:00
depfu[bot]
45e17dd6ae Update cssnano to version 5.0.16 2022-02-04 18:14:23 +00:00
depfu[bot]
9f23bb356e Update @swc/register to version 0.1.10 2022-02-03 05:58:03 +00:00
depfu[bot]
fb14b2d561 Update resolve to version 1.22.0 2022-01-31 21:28:37 +00:00
Robin Malfait
ce987357de
3.0.18 2022-01-28 20:46:16 +01:00
depfu[bot]
0bdc90d0c4 Update postcss-selector-parser to version 6.0.9 2022-01-27 12:28:25 +00:00
Robin Malfait
74997f1646
3.0.17 2022-01-26 19:32:02 +01:00
depfu[bot]
35bac2aadd Update autoprefixer to version 10.4.2 2022-01-26 16:44:04 +00:00
depfu[bot]
490c9dcb29 Update chokidar to version 3.5.3 2022-01-25 07:58:28 +00:00
Robin Malfait
b1c77d6406
3.0.16 2022-01-24 14:56:48 +01:00
depfu[bot]
f8ed6a24f4 Update @swc/jest to version 0.2.17 2022-01-19 10:14:14 +00:00
depfu[bot]
b99f380f45 Update cssnano to version 5.0.15 2022-01-17 12:58:45 +00:00
depfu[bot]
3e2a067333 Update fast-glob to version 3.2.11 2022-01-16 13:58:30 +00:00