4001 Commits

Author SHA1 Message Date
Adam Wathan
d852de6785 2.2.4 v2.2.4 2021-06-23 15:27:53 -04:00
Adam Wathan
1eacfb9884 Remove postinstall script 2021-06-23 15:27:47 -04:00
Adam Wathan
91a441d458 Update fixtures 2021-06-23 15:25:46 -04:00
Adam Wathan
041eed0d46 2.2.3 v2.2.3 2021-06-23 14:32:18 -04:00
Adam Wathan
bbb6517efd Update changelog 2021-06-23 14:24:21 -04:00
Adam Wathan
384a0d079e Update changelog 2021-06-23 14:21:33 -04:00
Adam Wathan
246539d528 Update changelog 2021-06-23 14:14:45 -04:00
Adam Wathan
063eca6dc4
Remove outdated focus style fix (#4780)
* Remove outdated focus style fix from Preflight

* Update fixtures
2021-06-23 14:14:36 -04:00
Sachin Raja
c0ee52060c
Generate plugin list file (#4725)
* Generate plugin list file

Removes the importing of all plugins in src/util/resolveConfig to avoid importing CSS.
Import the built plugin list file instead.

* Use `process.cwd()` instead of `__dirname` to resolve path

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* Import core plugin list in resolveConfig test

* Generate plugin list prebabelify and on install

* Move generation from install to postinstall

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-06-23 14:13:03 -04:00
schelmo
973d53d6dc
fix: do not return the userConfigPath if its null (#4773) 2021-06-23 14:12:42 -04:00
Arnout Roemers
aefd5f71cb
Enable purging when --purge option is supplied in CLI (#4772)
Do not require NODE_ENV to be set to 'production' as well, as using
the --purge option in the CLI should be explicit enough.

Co-authored-by: Arnout Roemers <roemers@zorgdomein.nl>
2021-06-23 14:12:06 -04:00
Robin Malfait
0413b84c12
ensure peer variants don't include multiple ~ characters (#4757)
Fixes: #4726
2021-06-22 20:40:52 -04:00
depfu[bot]
b7b2db2592 Update chokidar to version 3.5.2 2021-06-22 13:48:26 +00:00
depfu[bot]
987374fea4 Update @babel/core to version 7.14.6 2021-06-21 22:18:45 +00:00
Adam Wathan
d99663a71d
Update 1.bug_report.yml 2021-06-21 17:16:12 -04:00
depfu[bot]
7a8f7e2ff5 Update postcss-load-config to version 3.1.0 2021-06-21 11:47:52 +00:00
Adam Wathan
8da840f2a3 Add LICENSE for preflight
Preserves original license from suitcss-base, since Preflight was originally forked from that project.
2021-06-20 15:09:26 -04:00
Adam Wathan
359252c9b4 Pass colors to theme closures 2021-06-19 14:31:37 -04:00
Adam Wathan
1d72dc2699
Error when dash is used as custom separator (#4704) 2021-06-18 16:01:38 -04:00
depfu[bot]
ff14cb5ada Update cssnano to version 5.0.6 2021-06-18 18:19:00 +00:00
Robin Malfait
b274849938
add missing header
Oops, my bad
2021-06-18 16:40:08 +02:00
Robin Malfait
9e77d743c3
2.2.2 v2.2.2 2021-06-18 16:35:36 +02:00
Robin Malfait
f425661a90
rebuild fixtures 2021-06-18 16:35:19 +02:00
Robin Malfait
39db485483
update changelog 2021-06-18 16:35:19 +02:00
Robin Malfait
f6e36c2847
Fix stacking context issue (#4700)
* add no-op transform, filter, backdrop-filter utilities

* update tests
2021-06-18 16:31:14 +02:00
Robin Malfait
2fd6575095
2.2.1 v2.2.1 2021-06-18 15:42:31 +02:00
Robin Malfait
ea7b3f6189
rebuild fixtures 2021-06-18 15:42:18 +02:00
Robin Malfait
ade93d2343
update changelog 2021-06-18 15:41:08 +02:00
Adam Wathan
0148ee9535 Update changelog 2021-06-18 09:39:17 -04:00
Robin Malfait
0b6176bacf
Fix media queries for postcss7 (#4695)
This fixes a postcss7 issues where .append() does not clear the children
2021-06-18 15:37:52 +02:00
Robin Malfait
70ca673d96
ensure the CLI in watch mode keeps running when on error (#4693) 2021-06-18 08:46:00 -04:00
Adam Wathan
418d223837 Update fixtures 2021-06-17 14:45:44 -04:00
Adam Wathan
0bc3eeb0f6 2.2.0 v2.2.0 2021-06-17 12:01:32 -04:00
Adam Wathan
729b09adab Update CHANGELOG 2021-06-17 12:01:29 -04:00
Robin Malfait
674d79d0ac
move cssnano to devDependencies 2021-06-17 17:54:32 +02:00
Robin Malfait
f63b4531f5
Add tailwindcss/nesting plugin (#4673)
* add nesting plugin

* rename @tailwindcss/nesting to tailwindcss/nesting

* ignore the built `nesting` plugin

* add a postcss7 compat version

* include `nesting` plugin when publishing

* add `build-plugins` script

This will allow us to keep the plugins in their dedicated folders +
tests + postcss7 compatibility files. However, when we copy over the
plugins to the root. For example `plugins/nesting/` -> `nesting/` we
skip files like `.test.js` and `.postcss7.js`.

* build plugins when running `prepublishOnly`

* improve compat mode

We will use a glob so that we can move all *.postcss7.* files to just
*.* likewise we will also backup to *.* to *.postcss8.* for restoring
purposes.

Concrete example:

- Current state:
  - index.js            // PostCSS 8 implementation
  - index.postcss7.js   // PostCSS 7 implementation

- Run "compat"
  - index.js            // PostCSS 7 implementation
  - index.postcss7.js   // PostCSS 7 implementation
  - index.postcss8.js   // PostCSS 8 implementation (Backup of original)

- Run "compat:restore"
  - index.js            // PostCSS 8 implementation
  - index.postcss7.js   // PostCSS 7 implementation
  - X index.postcss8.js // PostCSS 8 implementation (Removed)

* Update README.md

* ensure we `npm install` before publishing

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-06-17 09:43:52 -04:00
Brad Cornes
243e8814d8
Resolve purge paths relative to the current working directory (#4655)
* resolve purge paths relative to cwd

* simplify test
2021-06-15 16:37:04 -04:00
Robin Malfait
38a71d8d60
Use tmp file as a touch file (#4650)
* use `~/.cache/tailwindcss` as default touch dir

When more tools catch up with the latest postcss dependency tracking,
then we probably don't even need this anymore. However, it is a good
practice to put (global) caches in ~/.cache and (global) configs in
~/.config

Fixes: #4569

* change test to verify @tailwind base slightly

Because of some changes in tailwind itself, the base selector contains a
ton of new --tw-* custom properties. Keeping this up to date might be a
bit of an annoying challenge. So instead we now check for the selector
to be present.

* add `tmp` package

* use a (simple) temporary file, instead of a full cache dir
2021-06-15 10:06:29 -04:00
Adam Wathan
af4a77ae8f Remove unused import 2021-06-14 16:14:07 -04:00
Adam Wathan
81816df3a1 Support arbitrary values for object-position 2021-06-14 16:03:14 -04:00
Robin Malfait
0d47ffd2d3
Fix cloning issues (#4646)
* ensure postcss 7 is dropped from dev dependencies as well

Drop incorrect "help" text

* ensure we are cloning nodes

This is an issue in postcss 7 and fixed in postcss 8. However the compat build still suffers form this issue.
2021-06-14 17:48:28 +02:00
depfu[bot]
03eab314df Update prettier to version 2.3.1 2021-06-12 10:49:22 +00:00
depfu[bot]
7f564d275a Update eslint to version 7.28.0 2021-06-11 23:03:43 +00:00
Adam Wathan
546cff81e7
Allow quotes in arbitrary value blocks (#4625) 2021-06-11 09:55:35 -04:00
Adam Wathan
cb2598ce33
Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements (#4624)
* Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements

* Rebuild fixtures
2021-06-11 09:11:56 -04:00
Adam Wathan
d6da12ff0c Update CHANGELOG 2021-06-10 12:22:04 -04:00
Adam Wathan
ff64417ff7
Add blur-none with intent to deprecate blur-0 (#4614)
We always use `none` for other utilities where the values have string names like `sm`, but for `blur` I chose `blur-0` for some idiotic reason. Can't have that.
2021-06-10 12:13:19 -04:00
Adam Wathan
34d0551e93
Remove need for filter and backdrop-filter toggles (#4611) 2021-06-10 11:36:15 -04:00
Robin Malfait
f4799a32e8
add tests for the --postcss option in the new CLI (#4607)
* add tests for the --postcss option in the new CLI

* add `oneOf` ability to the `arg()` functionality

By default, `arg()` doesn't have a way to define multiple types. We want
the possibility of using `--postcss` (Boolean) or `--postcss
./custom-path.js`. But by default this is not possible.

This commit will allow us to do a few things, mainly:
- Keep the same API using the `{ type: oneOf(String, Boolean), description: '...' }`
- Keep the `--help` output similar

What we did behind the scenes is make sure to put the non recognized
flags in the `_` arguments list. This is possible by doing `permissive:
true`. We then manually parse those and resolve the correct value.

* ensure that we can use a custom `--postcss ./with-custom-path.js`
2021-06-10 11:35:17 -04:00
Adam Wathan
b86aa5c2a9
Remove need for transform toggle (#4604) 2021-06-10 09:15:41 -04:00