postcss 5.0.13 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/CHANGELOG.md +3 -0
- package/README.md +3 -2
- package/docs/plugins.md +19 -1
- package/lib/processor.js +1 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
@@ -103,14 +103,14 @@ If you have any new ideas, [PostCSS plugin development] is really easy.
|
|
103
103
|
[`doiuse`]: https://github.com/anandthakker/doiuse
|
104
104
|
[`rtlcss`]: https://github.com/MohammadYounes/rtlcss
|
105
105
|
[`short`]: https://github.com/jonathantneal/postcss-short
|
106
|
-
[`lost`]: https://github.com/
|
106
|
+
[`lost`]: https://github.com/peterramsing/lost
|
107
107
|
|
108
108
|
## Syntaxes
|
109
109
|
|
110
110
|
PostCSS can transform styles in any syntax, not just CSS.
|
111
111
|
|
112
112
|
* [`postcss-scss`] to work with SCSS *(but does not compile SCSS to CSS)*.
|
113
|
-
* [`postcss-js`] to
|
113
|
+
* [`postcss-js`] to write styles in JS or transform React Inline Styles,
|
114
114
|
Radium or JSS.
|
115
115
|
* [`postcss-safe-parser`] finds and fixes CSS syntax errors.
|
116
116
|
* [`midas`] converts a CSS string to highlighted HTML.
|
@@ -122,6 +122,7 @@ PostCSS can transform styles in any syntax, not just CSS.
|
|
122
122
|
|
123
123
|
## Articles
|
124
124
|
|
125
|
+
* [Some things you may think about PostCSS… and you might be wrong](http://julian.io/some-things-you-may-think-about-postcss-and-you-might-be-wrong/)
|
125
126
|
* [What PostCSS Really Is; What It Really Does](http://davidtheclark.com/its-time-for-everyone-to-learn-about-postcss/)
|
126
127
|
* [PostCSS Guides](http://webdesign.tutsplus.com/series/postcss-deep-dive--cms-889)
|
127
128
|
|
package/docs/plugins.md
CHANGED
@@ -92,6 +92,8 @@ See also [`cssnext`] plugins pack to add future CSS syntax by one line of code.
|
|
92
92
|
* [`postcss-epub`] adds the `-epub-` prefix to relevant properties.
|
93
93
|
* [`postcss-fallback`] adds `fallback` function to avoid duplicate declarations.
|
94
94
|
* [`postcss-filter-gradient`] adds gradient filter for the old IE.
|
95
|
+
* [`postcss-flexibility`] adds `-js-` prefix for [`Flexibility polyfill`].
|
96
|
+
* [`postcss-hash-classname`] append hash string to your css class name.
|
95
97
|
* [`postcss-mqwidth-to-class`] converts min/max-width media queries to classes.
|
96
98
|
* [`postcss-opacity`] adds opacity filter for IE8.
|
97
99
|
* [`postcss-pseudoelements`] Convert `::` selectors into `:` selectors
|
@@ -108,6 +110,8 @@ See also [`cssnext`] plugins pack to add future CSS syntax by one line of code.
|
|
108
110
|
|
109
111
|
See also [`oldie`] plugins pack.
|
110
112
|
|
113
|
+
[`Flexibility polyfill`]: https://github.com/10up/flexibility
|
114
|
+
|
111
115
|
## Language Extensions
|
112
116
|
|
113
117
|
* [`postcss-atroot`] place rules directly at the root node.
|
@@ -115,6 +119,7 @@ See also [`oldie`] plugins pack.
|
|
115
119
|
* [`postcss-conditionals`] adds `@if` statements.
|
116
120
|
* [`postcss-css-variables`] supports variables for selectors, and at-rules
|
117
121
|
using W3C similar syntax.
|
122
|
+
* [`postcss-current-selector`] to get current selector in declaration.
|
118
123
|
* [`postcss-define-property`] to define properties shortcut.
|
119
124
|
* [`postcss-each`] adds `@each` statement.
|
120
125
|
* [`postcss-for`] adds `@for` loops.
|
@@ -133,6 +138,8 @@ See also [`oldie`] plugins pack.
|
|
133
138
|
* [`postcss-nested`] unwraps nested rules.
|
134
139
|
* [`postcss-nested-props`] unwraps nested properties.
|
135
140
|
* [`postcss-nested-vars`] supports nested Sass-style variables.
|
141
|
+
* [`postcss-pseudo-class-any-button`] adds `:any-button` pseudo-class
|
142
|
+
for targeting all button elements.
|
136
143
|
* [`postcss-pseudo-class-enter`] transforms `:enter` into `:hover` and `:focus`.
|
137
144
|
* [`postcss-quantity-queries`] enables quantity queries.
|
138
145
|
* [`postcss-reverse-media`] reverse/Invert media query parameters.
|
@@ -217,9 +224,11 @@ See also [`precss`] plugins pack to add them by one line of code.
|
|
217
224
|
|
218
225
|
* [`postcss-calc`] reduces `calc()` to values
|
219
226
|
(when expressions involve the same units).
|
227
|
+
* [`postcss-filter-mq`] Filter all matching or non-matching media queries.
|
220
228
|
* [`postcss-import`] inlines the stylesheets referred to by `@import` rules.
|
221
|
-
* [`postcss-reference`] emulates Less’s [`@import (reference)`].
|
222
229
|
* [`postcss-partial-import`] inlines standard imports and Sass-like partials.
|
230
|
+
* [`postcss-reference`] emulates Less’s [`@import (reference)`].
|
231
|
+
* [`postcss-remove-root`] removes all instances of `:root` from a stylesheet.
|
223
232
|
* [`postcss-single-charset`] ensures that there is one and only one
|
224
233
|
`@charset` rule at the top of file.
|
225
234
|
* [`postcss-zindex`] rebases positive `z-index` values.
|
@@ -291,6 +300,7 @@ See also plugins in modular minifier [`cssnano`].
|
|
291
300
|
* [`postcss-pseudo-content-insert`] adds `content: ''` to `:before` and `:after`
|
292
301
|
if it is missing.
|
293
302
|
* [`postcss-pxtorem`] converts pixel units to `rem`.
|
303
|
+
* [`postcss-safe-important`] adds `!important` to style declarations safely.
|
294
304
|
* [`postcss-select`] select rules based off a selector list.
|
295
305
|
* [`postcss-selector-prefixer`] adds a prefix to css selectors.
|
296
306
|
* [`postcss-shorthand-expand`] expands shorthand properties.
|
@@ -345,6 +355,8 @@ See also plugins in modular minifier [`cssnano`].
|
|
345
355
|
* [`postcss-spiffing`] lets you use British English in your CSS.
|
346
356
|
* [`postcss-spanish-stylesheets`] Spanish Style Sheets.
|
347
357
|
|
358
|
+
|
359
|
+
[`postcss-pseudo-class-any-button`]: https://github.com/andrepolischuk/postcss-pseudo-class-any-button
|
348
360
|
[`postcss-pseudo-elements-content`]: https://github.com/omgovich/postcss-pseudo-elements-content
|
349
361
|
[`postcss-australian-stylesheets`]: https://github.com/dp-lewis/postcss-australian-stylesheets
|
350
362
|
[`postcss-andalusian-stylesheets`]: https://github.com/bameda/postcss-andalusian-stylesheets
|
@@ -380,6 +392,7 @@ See also plugins in modular minifier [`cssnano`].
|
|
380
392
|
[`postcss-browser-reporter`]: https://github.com/postcss/postcss-browser-reporter
|
381
393
|
[`postcss-selector-matches`]: https://github.com/postcss/postcss-selector-matches
|
382
394
|
[`postcss-shorthand-expand`]: https://github.com/johnotander/postcss-shorthand-expand
|
395
|
+
[`postcss-current-selector`]: https://github.com/komlev/postcss-current-selector
|
383
396
|
[`postcss-all-link-colors`]: https://github.com/jedmao/postcss-all-link-colors
|
384
397
|
[`postcss-color-hex-alpha`]: https://github.com/postcss/postcss-color-hex-alpha
|
385
398
|
[`postcss-define-property`]: https://github.com/daleeidd/postcss-define-property
|
@@ -398,10 +411,12 @@ See also plugins in modular minifier [`cssnano`].
|
|
398
411
|
[`postcss-convert-values`]: https://github.com/ben-eb/postcss-convert-values
|
399
412
|
[`postcss-partial-import`]: https://github.com/jonathantneal/postcss-partial-import
|
400
413
|
[`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements
|
414
|
+
[`postcss-safe-important`]: https://github.com/Crimx/postcss-safe-important
|
401
415
|
[`postcss-short-position`]: https://github.com/jonathantneal/postcss-short-position
|
402
416
|
[`postcss-single-charset`]: https://github.com/hail2u/postcss-single-charset
|
403
417
|
[`postcss-flexbugs-fixes`]: https://github.com/luisrudge/postcss-flexbugs-fixes
|
404
418
|
[`postcss-shades-of-gray`]: https://github.com/laureanoarcanio/postcss-shades-of-gray
|
419
|
+
[`postcss-hash-classname`]: https://github.com/ctxhou/postcss-hash-classname
|
405
420
|
[`postcss-alias-atrules`]: https://github.com/maximkoretskiy/postcss-alias-atrules
|
406
421
|
[`postcss-color-palette`]: https://github.com/zaim/postcss-color-palette
|
407
422
|
[`postcss-assets-rebase`]: https://github.com/devex-web-frontend/postcss-assets-rebase
|
@@ -425,6 +440,7 @@ See also plugins in modular minifier [`cssnano`].
|
|
425
440
|
[`postcss-sassy-mixins`]: https://github.com/andyjansson/postcss-sassy-mixins
|
426
441
|
[`postcss-custom-media`]: https://github.com/postcss/postcss-custom-media
|
427
442
|
[`postcss-default-unit`]: https://github.com/antyakushev/postcss-default-unit
|
443
|
+
[`postcss-flexibility`]: https://github.com/7rulnik/postcss-flexibility
|
428
444
|
[`postcss-flexboxfixer`]: https://github.com/hallvors/postcss-flexboxfixer
|
429
445
|
[`postcss-font-variant`]: https://github.com/postcss/postcss-font-variant
|
430
446
|
[`postcss-media-minmax`]: https://github.com/postcss/postcss-media-minmax
|
@@ -449,6 +465,7 @@ See also plugins in modular minifier [`cssnano`].
|
|
449
465
|
[`postcss-will-change`]: https://github.com/postcss/postcss-will-change
|
450
466
|
[`postcss-input-style`]: https://github.com/seaneking/postcss-input-style
|
451
467
|
[`css-property-sorter`]: https://github.com/Siilwyn/css-property-sorter
|
468
|
+
[`postcss-remove-root`]: https://github.com/cbracco/postcss-remove-root
|
452
469
|
[`postcss-ase-colors`]: https://github.com/dfernandez79/postcss-ase-colors
|
453
470
|
[`postcss-bem-linter`]: https://github.com/postcss/postcss-bem-linter
|
454
471
|
[`postcss-color-gray`]: https://github.com/postcss/postcss-color-gray
|
@@ -464,6 +481,7 @@ See also plugins in modular minifier [`cssnano`].
|
|
464
481
|
[`postcss-color-hwb`]: https://github.com/postcss/postcss-color-hwb
|
465
482
|
[`postcss-color-mix`]: https://github.com/iamstarkov/postcss-color-mix
|
466
483
|
[`postcss-color-yiq`]: https://github.com/ben-eb/postcss-color-yiq
|
484
|
+
[`postcss-filter-mq`]: https://github.com/simeydotme/postcss-filter-mq
|
467
485
|
[`postcss-image-set`]: https://github.com/alex499/postcss-image-set
|
468
486
|
[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg
|
469
487
|
[`postcss-animation`]: https://github.com/zhouwenbin/postcss-animation
|
package/lib/processor.js
CHANGED
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
exports.__esModule = true;
|
4
4
|
|
5
|
-
var _package = require('../package');
|
6
|
-
|
7
|
-
var _package2 = _interopRequireDefault(_package);
|
8
|
-
|
9
5
|
var _lazyResult = require('./lazy-result');
|
10
6
|
|
11
7
|
var _lazyResult2 = _interopRequireDefault(_lazyResult);
|
@@ -22,7 +18,7 @@ var Processor = (function () {
|
|
22
18
|
|
23
19
|
_classCallCheck(this, Processor);
|
24
20
|
|
25
|
-
this.version =
|
21
|
+
this.version = '5.0.14';
|
26
22
|
|
27
23
|
this.plugins = this.normalize(plugins);
|
28
24
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.14",
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=0.12"
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"strip-ansi": "3.0.0",
|
38
38
|
"gulp-shell": "0.5.1",
|
39
39
|
"yaspeller": "2.6.0",
|
40
|
-
"fs-extra": "0.26.
|
40
|
+
"fs-extra": "0.26.3",
|
41
41
|
"isparta": "4.0.0",
|
42
42
|
"eslint": "1.10.3",
|
43
43
|
"sinon": "1.17.2",
|
@@ -45,10 +45,10 @@
|
|
45
45
|
"gulp": "3.9.0",
|
46
46
|
"chai": "3.4.1",
|
47
47
|
"del": "2.2.0",
|
48
|
-
"babel-plugin-add-module-exports": "0.1.
|
49
|
-
"babel-preset-es2015-loose": "6.1.
|
48
|
+
"babel-plugin-add-module-exports": "0.1.2",
|
49
|
+
"babel-preset-es2015-loose": "6.1.4",
|
50
50
|
"babel-preset-stage-0": "6.3.13",
|
51
|
-
"babel-core": "6.3.
|
51
|
+
"babel-core": "6.3.26"
|
52
52
|
},
|
53
53
|
"scripts": {
|
54
54
|
"test": "gulp"
|