Skip to content

Commit

Permalink
Add container queries plugin to standalone CLI (#9865)
Browse files Browse the repository at this point in the history
* Add container queries plugin to standalone CLI

* Add container queries to standalone CLI tests

* Update changelog
  • Loading branch information
reinink authored Nov 17, 2022
1 parent 4aa18c9 commit bc3d38b
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Cleanup unused `variantOrder` ([#9829](https://github.com/tailwindlabs/tailwindcss/pull/9829))

### Added

- Add container queries plugin to standalone CLI ([#9865](https://github.com/tailwindlabs/tailwindcss/pull/9865))

## [3.2.4] - 2022-11-11

### Added
Expand Down
59 changes: 38 additions & 21 deletions standalone-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions standalone-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"devDependencies": {
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/container-queries": "^0.1.0",
"@tailwindcss/forms": "^0.5.2",
"@tailwindcss/line-clamp": "^0.4.0",
"@tailwindcss/typography": "^0.5.4",
Expand Down
1 change: 1 addition & 0 deletions standalone-cli/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let localModules = {
'tailwindcss/plugin': require('tailwindcss/plugin'),

'@tailwindcss/aspect-ratio': require('@tailwindcss/aspect-ratio'),
'@tailwindcss/container-queries': require('@tailwindcss/container-queries'),
'@tailwindcss/forms': require('@tailwindcss/forms'),
'@tailwindcss/line-clamp': require('@tailwindcss/line-clamp'),
'@tailwindcss/typography': require('@tailwindcss/typography'),
Expand Down
1 change: 1 addition & 0 deletions standalone-cli/tests/fixtures/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
<input type="text" class="form-input" />
<div class="line-clamp-2"></div>
<div class="prose"></div>
<div class="@container @md:bg-teal-600"></div>
1 change: 1 addition & 0 deletions standalone-cli/tests/fixtures/test.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
plugins: [
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/container-queries'),
require('@tailwindcss/forms')({ strategy: 'class' }),
require('@tailwindcss/line-clamp'),
require('@tailwindcss/typography'),
Expand Down
2 changes: 2 additions & 0 deletions standalone-cli/tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ it('supports first-party plugins', () => {
expect(result).toContain('.form-input')
expect(result).toContain('.line-clamp-2')
expect(result).toContain('.prose')
expect(result).toContain('@container')
expect(result).toContain('@md\\:bg-teal-600')
})

it('supports postcss config files', async () => {
Expand Down

0 comments on commit bc3d38b

Please sign in to comment.