25 Commits

Author SHA1 Message Date
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
Adam Wathan
c6449f8fa8 Make container plugin a core plugin, configured in theme 2019-03-14 14:36:28 -04:00
Adam Wathan
bc49046c95 Don't export core plugins 2019-02-26 09:59:50 -05:00
Adam Wathan
9925d6156d Rename tracking plugin to letterSpacing 2019-02-19 15:54:07 -05:00
Adam Wathan
ceb093e6a1 Rename leading plugin to lineHeight 2019-02-19 15:49:33 -05:00
Adam Wathan
3b41062972 Delete weird accidentally created files 2019-02-18 14:21:19 -05:00
Adam Wathan
3e468dd59d Revert renaming leading to lineHeight 2019-02-15 22:08:58 -05:00
Adam Wathan
914c581974 Revert renaming tracking to letterSpacing 2019-02-15 22:07:37 -05:00
Adam Wathan
c2f62c1c6c Split textStyle plugin into one plugin per CSS property 2019-02-15 16:12:49 -05:00
Adam Wathan
ec0b9ae68e Rename textColors to textColor 2019-02-15 15:31:06 -05:00
Adam Wathan
76b208dc83 Rename lists to listStyle 2019-02-15 15:30:43 -05:00
Adam Wathan
36c2a60766 Rename tracking to letterSpacing 2019-02-15 15:24:40 -05:00
Adam Wathan
ab9277d3eb Rename textSizes to fontSize 2019-02-15 15:21:27 -05:00
Adam Wathan
e9f86cc295 Rename svgStroke to stroke 2019-02-15 15:20:05 -05:00
Adam Wathan
7abbf520df Rename svgFill to fill 2019-02-14 15:33:51 -05:00
Adam Wathan
b6b67e1c8c Rename shadows to boxShadow 2019-02-14 15:32:38 -05:00
Adam Wathan
4b717aad56 Rename leading plugin to lineHeight 2019-02-14 15:31:19 -05:00
Adam Wathan
af65b45a4c Rename fontWeights to fontWeight 2019-02-14 15:25:35 -05:00
Adam Wathan
856fdbc3dd Rename borderWidths to borderWidth 2019-02-14 15:24:20 -05:00
Adam Wathan
df8fe5afa6 Rename borderColors to borderColor 2019-02-14 15:23:22 -05:00
Adam Wathan
376daf3345 Rename backgroundColors to backgroundColor 2019-02-14 15:20:07 -05:00
Adam Wathan
d3c65e55af Rename fonts plugin to fontFamily 2019-02-14 14:39:08 -05:00
Adam Wathan
a9bab6ebb6 Add preflight to tailwindcss/plugins folder 2019-02-08 09:26:34 -05:00
Adam Wathan
2f9172cf8d Update every plugin to accept its config as a parameter 2019-02-01 12:32:50 -05:00
Adam Wathan
6e7ae58910 Move container component to a built-in plugin 2018-03-12 15:34:34 -04:00