3922 Commits

Author SHA1 Message Date
Adam Wathan
c746d89b54
Rename lightBlue to sky (#4513) 2021-05-31 09:22:47 -04:00
Adam Wathan
204ad22ec8 Pin PurgeCSS to ^3 for compat build 2021-05-31 08:57:45 -04:00
depfu[bot]
49ccc109a9
Update @fullhuman/postcss-purgecss to version 4.0.3 (#3913)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-05-31 08:56:51 -04:00
Adam Wathan
09230b45bd Update changelog 2021-05-30 15:08:37 -04:00
Adam Wathan
7264a5b71b
Generate group parent classes correctly with custom separator (#4508) 2021-05-30 15:02:55 -04:00
Adam Wathan
15642fbcc8 Compare adjacent rules ignoring whitespace 2021-05-30 14:55:30 -04:00
Adam Wathan
8845d112fb Remove log
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
2021-05-29 14:48:10 -04:00
Adam Wathan
b34856cab3 Update CHANGELOG 2021-05-28 13:56:56 -04:00
Adam Wathan
77dfac2bfa
JIT: Add caret-color utilities (#4499)
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>

Co-authored-by: Jesse Katsumata <niconico.clarinet@gmail.com>
2021-05-28 13:55:42 -04:00
depfu[bot]
e6ea821a7a Update postcss to version 8.3.0 2021-05-28 04:02:36 +00:00
Adam Wathan
ca6b21a6bc Update plugin name 2021-05-27 12:37:20 -04:00
Robin Malfait
dfdfba25a2
Split context (#4489)
* Remove watcher from context

* WIP

* WIP

* format

* abstract configDependencies

* abstract fileModifiedMap

* abstract candidateFiles

* abstract changedContent to each strategy

* little bit of cleanup

* formatting

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-27 12:29:07 -04:00
Adam Wathan
d1e9632064
JIT: Add exhaustive pseudo-class and pseudo-element variant support (#4482)
* Add first-line, first-letter, and marker variants

* Add selection variant

Co-Authored-By: Eric Rodrigues Pires <eric@eric.dev.br>

* Add remaining pseudo-class variants

* Add target pseudo-class

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

* add test for parallel variants

* implement parallel variants

Co-authored-by: Eric Rodrigues Pires <eric@eric.dev.br>
Co-authored-by: Peter Neupauer <peter@neupauer.sk>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-05-27 17:09:29 +02:00
Brad Cornes
8cd60171e0 always populate the file modified map 2021-05-26 18:20:29 +01:00
Robin Malfait
e119fc9745
make sure to populate the file modified map 2021-05-26 18:20:46 +02:00
Adam Wathan
342a52fccc Don't reuse fileModifiedMap from existing context
This causes changes in template files to be ignored on the second build.
2021-05-26 10:25:28 -04:00
Brad Cornes
55653ba004 move fileModifiedMap to context (fixes #4400) (#4470) 2021-05-26 09:43:05 -04:00
Brad Cornes
6bf6738683 Add transform and extract APIs (#4469)
* add `transform` and `extract` APIs

* make svelte transform part of the transformer stuff
2021-05-26 09:43:05 -04:00
Brad Cornes
e6395c817e replace parse-glob (fixes #4454) (#4458) 2021-05-26 09:43:05 -04:00
Adam Wathan
1849e35f14 Refactor internals to decouple watch strategies and extract IO
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-05-26 09:43:05 -04:00
Adam Wathan
89b9e3406f Update CHANGELOG 2021-05-26 08:57:50 -04:00
Adam Wathan
c8a5f816f4
JIT: Add support for before/after pseudo-elements (#4461) 2021-05-26 08:57:02 -04:00
depfu[bot]
1badba55b7 Update all of babel7 to version 7.14.3 2021-05-24 21:18:33 +00:00
Adam Wathan
16a9e0ddbf Update changelog 2021-05-24 15:10:43 -04:00
Adam Wathan
2f1541123d JIT: Assign source to nodes inserted into @tailwind directives 2021-05-24 15:08:38 -04:00
Adam Wathan
a2c44907ba Rebuild fixtures 2021-05-24 11:50:06 -04:00
Jason Safaiyeh
ea3892fc91
Add comment to clarify vertical-align warning (#4434)
* Add comment to clarify vertical-align warning

* fix typo

* Update preflight.css

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-24 11:46:50 -04:00
Adam Wathan
3876cffbbd
Update 1.bug_report.yml 2021-05-24 08:45:28 -04:00
depfu[bot]
04d90af597 Update eslint to version 7.26.0 2021-05-21 23:01:50 +00:00
Adam Wathan
ab9e1fc4db Update package-lock.json 2021-05-20 14:02:50 -04:00
Adam Wathan
995e02fd84 Don't compile CLI
Need to figure out which dependencies are platform specific before it's safe to do this.
2021-05-20 13:49:15 -04:00
Adam Wathan
a8c012682f Update changelog 2021-05-20 13:48:19 -04:00
Adam Wathan
5fa665835f Fix formatting issues 2021-05-20 13:43:17 -04:00
depfu[bot]
2fec61e753
Update prettier to version 2.3.0 (#4367)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2021-05-20 13:40:04 -04:00
Adam Wathan
d8bd507b9b
JIT: Add per-side border colors (#4404) 2021-05-20 13:35:39 -04:00
Brad Cornes
787348b373
use dir-dependency messages (#4388) 2021-05-20 07:09:57 -04:00
depfu[bot]
93cfe97847 Update postcss-selector-parser to version 6.0.6 2021-05-19 08:08:33 +00:00
Robin Malfait
7565099c1f
Integrations setup (#4354)
* add integration test tools

* setup jest in the integrations folder

* add `test:integrations` script

The default `npm test` script will ignore all the tests in the
`integrations` folder.

* add integration tests with `webpack 5`

* add integration tests with `postcss-cli`

* add `npm run install:integrations` script

This script will run `npm install` in every integration, and in the
integrations folder itself (to setup Jest for example).

* add `toIncludeCss` custom matcher

* increate Jest timeout for integration tests

* add integration tests with `vite`

* add integration tests with `webpack 4`

* add isomorphic fetch

* add the ability to wait for specific stdout/stderr output

* write vite tests, assert using API calls

We will wait for the correct stdout/stderr output, once we know that we
can request the fresh css, we will fetch it and make assertions
accordingly.

Port is currently hardcoded, maybe we should use a packaage to ensure
that we use a free port.

* add integration tests with `rollup`

* add integration tests with `parcel`

* run all integration tests in band

* add .gitignore in integrations folder
2021-05-18 11:21:35 -04:00
Adam Wathan
7d4f053bb6
Update README.md 2021-05-18 09:58:28 -04:00
Adam Wathan
7bc3166740
Update nodejs.yml 2021-05-18 09:57:55 -04:00
Adam Wathan
a37198577c Don't lint CLI directory 2021-05-14 19:11:55 -04:00
Adam Wathan
73683d8795 Compile CLI to single file to avoid peer dependency issues 2021-05-14 17:02:15 -04:00
Adam Wathan
7b6ae435ea Update CHANGELOG 2021-05-14 16:53:35 -04:00
Adam Wathan
23da6b6172
JIT: Replace @tailwind screens with @tailwind variants (#4356)
* Update CHANGELOG

* JIT: Replace `@tailwind screens` with `@tailwind variants`
2021-05-14 13:58:52 -04:00
Adam Wathan
353ffae124 Update CHANGELOG 2021-05-14 13:11:47 -04:00
Adam Wathan
87df93de0a
Support opacity modifiers for colors in JIT (#4348)
* Support opacity modifiers for colors in JIT

* Add test for function colors

* Support opacity modifiers for plugins with arbitrary "any" type
2021-05-14 13:07:56 -04:00
Adam Wathan
6be797633f Remove accidental log 2021-05-13 12:06:50 -04:00
Dr. Derek Austin
4488fc1d0d
Add Prettier configuration file (prettier.config.js) (#3713)
* Create prettier.config.js

* Add comment with .editorconfig

* Remove duplicate settings handled by .editorconfig

* Correct printWidth

* Update prettier.config.js to remove "unknown option" editorconfig: true
2021-05-13 09:07:24 -04:00
Adam Wathan
30dc2990c3
Error when @layer used without matching @tailwind directive (#4335)
Also refactor to only detect `@tailwind` directives once per build to improve performance.
2021-05-12 16:58:03 -04:00
Robin Malfait
87a4516871
add a link to the docs describing JIT watch mode (#4332)
This will help people, when the process looks like it is "hanging",
while in fact it is watching for changes.
2021-05-12 13:44:48 -04:00