Brad Cornes
f1e31682c8
cleanup old contexts in config hash map ( #4571 )
2021-06-07 13:49:38 -04:00
Adam Wathan
67ee5e033d
Write to stdout in watch mode if no output file provided
2021-06-05 16:38:54 -04:00
Adam Wathan
bd20d2c0fa
Don't reassign configPath
2021-06-04 12:52:53 -04:00
Adam Wathan
cb48248552
Remove existing CLI
2021-06-04 11:44:28 -04:00
Adam Wathan
b9dd8b0a6d
Add peer variant ( #4556 )
2021-06-04 10:32:49 -04:00
Adam Wathan
746a12602e
Improve new JIT-compatible CLI ( #4558 )
...
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-06-04 10:28:09 -04:00
Adam Wathan
05d26a5d43
Make createContext arguments optional
...
For Brad!
2021-06-03 11:08:04 -04:00
Adam Wathan
65fde59f6a
Make it possible to enable caretColor and content core plugins in AOT mode ( #4548 )
...
* Fix issue where disabled corePlugins can't be re-enabled
* Disable caretColor and content core plugins by default, enable in JIT
* Don't disable caretColor/content in default config stub, hard-code for AOT instead
But with ability to still opt-in through your own config. Somewhat messy, but goal is to keep the messes in the AOT path and keep the JIT path pure.
* Fix style
* Revert unnecessary changes
* Fix style
2021-06-03 15:27:22 +02:00
Robin Malfait
d6b11b3807
Group variant stacking ( #4551 )
...
* make group variant stacking work
* simplify stacking group variants
2021-06-03 15:25:46 +02:00
Brad Cornes
a3db3a4700
Register PurgeCSS content as PostCSS dependencies ( #4543 )
...
* add `glob` property to `dir-dependency` messages
* Add `glob` to `dir-dependency` messages
* register purge content as postcss dependencies
2021-06-03 05:41:32 -04:00
Brad Cornes
739c0fb83e
Add glob property to dir-dependency messages ( #4539 )
...
* add `glob` property to `dir-dependency` messages
* Add `glob` to `dir-dependency` messages
2021-06-02 08:59:14 -04:00
Robin Malfait
4528bdc2d8
Start of new CLI ( #4526 )
...
* Ignore workspace settings
* Parameterize setting up the context
* WIP
* WIP
* WIP
* WIP
* wip
* WIP
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
* WIP
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
* WIP
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
* Update some comments
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
* Fix bug
* WIP
* WIP'
* more things
* log console.time calls conditionally based on process.env.DEBUG
* add `init` command
* clean up when using --jit
* Make config file optional
* cleanup path.resolve calls
path.resolve('.') is the same as path.resolve(process.cwd(), '.')
* implement `--help`
* shush eslint
* drop unnecessary file
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
Co-authored-by: Jesse Katsumata <niconico.clarinet@gmail.com>
2021-06-01 14:02:23 +02:00
Adam Wathan
b574273884
Use tracking context by default ( #4514 )
2021-05-31 10:02:56 -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
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
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
c8a5f816f4
JIT: Add support for before/after pseudo-elements ( #4461 )
2021-05-26 08:57:02 -04:00
Adam Wathan
2f1541123d
JIT: Assign source to nodes inserted into @tailwind directives
2021-05-24 15:08:38 -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
5fa665835f
Fix formatting issues
2021-05-20 13:43:17 -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
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
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
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
Adam Wathan
6d51f9a08a
Add read-only variant to JIT
2021-05-11 15:36:18 -04:00
Mateusz
f89bf5f4a6
Add :read-only variant ( #4102 )
...
* Add :read-only variant
* Added read-only variant to defaultConfig.stub
Co-authored-by: FunnyScarf <5177092+dyzajash@users.noreply.github.com>
2021-05-11 15:29:23 -04:00
Adam Wathan
7991646eff
Add screen function ( #4318 )
2021-05-11 15:25:25 -04:00
Adam Wathan
5ebe5e8309
Remove dependency on postcss-functions ( #4317 )
...
* Write postcss-functions ourselves
* Add test for nested theme calls
* Remove unused import
2021-05-11 14:33:05 -04:00
Adam Wathan
522787ac41
Revert fix lint errors?!
2021-05-11 14:25:34 -04:00
Adam Wathan
9fc13a6564
Fix lint errors
2021-05-11 13:55:02 -04:00
Twentylives
77ef260156
Refactor util functions ( #2616 )
...
* Refactor getAllConfigs util function
* Update eslint parser options to ES2020
2021-05-10 11:22:47 -04:00
Adam Wathan
4bfa21f756
Support border-opacity with default border color ( #4277 )
...
* Move border reset to borderColor plugin, support opacity
* Update JIT tests
* Don't use opacity variable for default border color when borderOpacity is disabled
* Fix tests
2021-05-08 06:59:14 -04:00
Adam Wathan
a22398cbdb
Add empty variant support to JIT
2021-05-07 14:48:41 -04:00
Alex
212bec9354
use href to get the full path of the file ( #4044 )
...
* use href to get the full path of the file
fixes https://github.com/tailwindlabs/tailwindcss/issues/4043
* drop query strings and document fragment from path
2021-05-07 14:48:09 -04:00
Brad Cornes
6a7d156608
Resolve purge paths ( #4214 )
...
* resolve purge paths
* add test for purgecss pattern resolution
* resolve purgecss patterns relative to the config file if there is one
* account for raw content when transforming purgecss options
* append test name to postcss `from` option in purge tests
fixes tests hanging
* add test for relative purge path resolution in JIT mode
2021-05-07 13:56:16 -04:00
Adam Wathan
425c73feec
Ensure variants are grouped properly for plugins with order-dependent utilities ( #4273 )
2021-05-07 13:56:16 -04:00