postcss
Advanced tools
Comparing version 5.0.5 to 5.0.6
@@ -0,1 +1,5 @@ | ||
## 5.0.6 | ||
* Fix parsing nested at-rule without semicolon (by Matt Drake). | ||
* Trim `Declaration#value` (by Bogdan Chadkin). | ||
## 5.0.5 | ||
@@ -2,0 +6,0 @@ * Fix multi-tokens property parsing (by Matt Drake). |
@@ -298,2 +298,5 @@ 'use strict'; | ||
break; | ||
} else if (token[0] === '}') { | ||
this.end(token); | ||
break; | ||
} else { | ||
@@ -373,16 +376,11 @@ params.push(token); | ||
Parser.prototype.raw = function raw(node, prop, tokens) { | ||
var token = undefined; | ||
var token = undefined, | ||
type = undefined; | ||
var length = tokens.length; | ||
var value = ''; | ||
var clean = true; | ||
for (var _iterator = tokens, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { | ||
if (_isArray) { | ||
if (_i >= _iterator.length) break; | ||
token = _iterator[_i++]; | ||
} else { | ||
_i = _iterator.next(); | ||
if (_i.done) break; | ||
token = _i.value; | ||
} | ||
if (token[0] === 'comment') { | ||
for (var i = 0; i < length; i += 1) { | ||
token = tokens[i]; | ||
type = token[0]; | ||
if (type === 'comment' || type === 'space' && i === length - 1) { | ||
clean = false; | ||
@@ -395,10 +393,10 @@ } else { | ||
var raw = ''; | ||
for (var _iterator2 = tokens, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { | ||
if (_isArray2) { | ||
if (_i2 >= _iterator2.length) break; | ||
token = _iterator2[_i2++]; | ||
for (var _iterator = tokens, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { | ||
if (_isArray) { | ||
if (_i >= _iterator.length) break; | ||
token = _iterator[_i++]; | ||
} else { | ||
_i2 = _iterator2.next(); | ||
if (_i2.done) break; | ||
token = _i2.value; | ||
_i = _iterator.next(); | ||
if (_i.done) break; | ||
token = _i.value; | ||
} | ||
@@ -405,0 +403,0 @@ |
{ | ||
"name": "postcss", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"description": "Tool for transforming styles with JS plugins", | ||
@@ -26,7 +26,7 @@ "keywords": [ | ||
"concat-with-sourcemaps": "1.0.2", | ||
"postcss-parser-tests": "5.0.3", | ||
"postcss-parser-tests": "5.0.4", | ||
"gulp-json-editor": "2.2.1", | ||
"gulp-istanbul": "0.10.0", | ||
"run-sequence": "1.1.2", | ||
"babel-eslint": "4.1.1", | ||
"run-sequence": "1.1.3", | ||
"babel-eslint": "4.1.3", | ||
"gulp-eslint": "1.0.0", | ||
@@ -40,9 +40,9 @@ "gulp-mocha": "2.1.3", | ||
"isparta": "3.0.4", | ||
"eslint": "1.4.1", | ||
"eslint": "1.5.0", | ||
"sinon": "1.16.1", | ||
"mocha": "2.3.2", | ||
"mocha": "2.3.3", | ||
"gulp": "3.9.0", | ||
"chai": "3.2.0", | ||
"chai": "3.3.0", | ||
"del": "2.0.2", | ||
"babel-core": "5.8.24" | ||
"babel-core": "5.8.25" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
@@ -123,3 +123,3 @@ # PostCSS [![Travis Build Status][travis-img]][travis] [![AppVeyor Build Status][appveyor-img]][appveyor] [![Gitter][chat-img]][chat] | ||
return gulp.src('src/**/*.css') | ||
.pipe( postcss([ require('cssnext')(), require('cssnano')() ]) ) | ||
.pipe( postcss([ require('autoprefixer'), require('cssnano') ]) ) | ||
.pipe( gulp.dest('build/') ); | ||
@@ -133,3 +133,3 @@ }); | ||
var postcss = require('postcss'); | ||
postcss([ require('cssnext')(), require('cssnano')() ]) | ||
postcss([ require('autoprefixer'), require('cssnano') ]) | ||
.process(css, { from: 'src/app.css', to: 'app.css' }) | ||
@@ -244,2 +244,3 @@ .then(function (result) { | ||
with new features and shortcuts. | ||
* [`short`] adds and extends numerous shorthand properties. | ||
* [`stylelint`] contains plugins that lint your stylesheets. | ||
@@ -249,3 +250,3 @@ | ||
[`rucksack`]: http://simplaio.github.io/rucksack | ||
[`cssnano`]: https://github.com/ben-eb/cssnano | ||
[`cssnano`]: http://cssnano.co/ | ||
[`cssnext`]: http://cssnext.io/ | ||
@@ -302,2 +303,3 @@ [`precss`]: https://github.com/jonathantneal/precss | ||
* [`postcss-atroot`] place rules directly at the root node. | ||
* [`postcss-bem`] adds at-rules for BEM and SUIT style classes. | ||
@@ -321,2 +323,3 @@ * [`postcss-conditionals`] adds `@if` statements. | ||
* [`postcss-nested-props`] unwraps nested properties. | ||
* [`postcss-nested-vars`] supports nested Sass-style variables. | ||
* [`postcss-pseudo-class-enter`] transforms `:enter` into `:hover` and `:focus`. | ||
@@ -367,5 +370,8 @@ * [`postcss-quantity-queries`] enables quantity queries. | ||
for `image-set()`. | ||
* [`postcss-image-inliner`] inlines local and remote images. | ||
* [`postcss-instagram`] adds Instagram filters to `filter`. | ||
* [`postcss-font-pack`] simplifies font declarations and validates they match | ||
configured font packs. | ||
* [`postcss-fontpath`] adds font links for different browsers. | ||
* [`postcss-responsive-images`] adds stylesheets for making your images responsive | ||
* [`postcss-sprites`] generates CSS sprites from stylesheets. | ||
@@ -377,2 +383,3 @@ * [`postcss-svg`] insert inline SVG to CSS and allows to manage it colors. | ||
* [`postcss-urlrev`] adds MD5 hash strings to `url()`s. | ||
* [`postcss-write-svg`] write inline SVGs in CSS. | ||
* [`webpcss`] adds URLs for WebP images for browsers that support WebP. | ||
@@ -408,2 +415,3 @@ | ||
* [`postcss-alias`] creates shorter aliases for properties. | ||
* [`postcss-alias-atrules`] creates shorter aliases for at-rules. | ||
* [`postcss-all-link-colors`] insert colors for link-related pseudo-classes. | ||
@@ -429,3 +437,2 @@ * [`postcss-border`] adds shorthand for width and color of all borders | ||
* [`postcss-responsive-type`] changes `font-size` depends on screen size. | ||
* [`postcss-short`] adds and extends numerous shorthand properties. | ||
* [`postcss-size`] adds a `size` shortcut that sets width and height | ||
@@ -487,3 +494,5 @@ with one declaration. | ||
* [`postcss-german-stylesheets`] German Style Sheets. | ||
* [`postcss-russian-stylesheets`] Russian Style Sheets. | ||
* [`postcss-swedish-stylesheets`] Swedish Style Sheets. | ||
* [`postcss-tatar-stylesheets`] Tatar Style Sheets | ||
* [`postcss-lolcat-stylesheets`] Lolspeak Style Sheets. | ||
@@ -502,2 +511,3 @@ * [`postcss-imperial`] adds CSS support for Imperial and US customary units of length. | ||
[`postcss-swedish-stylesheets`]: https://github.com/johnie/postcss-swedish-stylesheets | ||
[`postcss-russian-stylesheets`]: https://github.com/Semigradsky/postcss-russian-stylesheets | ||
[`postcss-color-rebeccapurple`]: https://github.com/postcss/postcss-color-rebeccapurple | ||
@@ -511,2 +521,4 @@ [`postcss-color-rgba-fallback`]: https://github.com/postcss/postcss-color-rgba-fallback | ||
[`postcss-transform-shortcut`]: https://github.com/jonathantneal/postcss-transform-shortcut | ||
[`postcss-responsive-images`]: https://github.com/azat-io/postcss-responsive-images | ||
[`postcss-tatar-stylesheets`]: https://github.com/azat-io/postcss-tatar-stylesheets | ||
[`postcss-custom-properties`]: https://github.com/postcss/postcss-custom-properties | ||
@@ -539,2 +551,3 @@ [`postcss-discard-font-face`]: https://github.com/ben-eb/postcss-discard-font-face | ||
[`postcss-flexbugs-fixes`]: https://github.com/luisrudge/postcss-flexbugs-fixes | ||
[`postcss-alias-atrules`]: https://github.com/maximkoretskiy/postcss-alias-atrules | ||
[`postcss-color-palette`]: https://github.com/zaim/postcss-color-palette | ||
@@ -550,2 +563,3 @@ [`postcss-color-pantone`]: https://github.com/longdog/postcss-color-pantone | ||
[`postcss-russian-units`]: https://github.com/Semigradsky/postcss-russian-units | ||
[`postcss-image-inliner`]: https://github.com/bezoerb/postcss-image-inliner | ||
[`postcss-mq-keyframes`]: https://github.com/TCotton/postcss-mq-keyframes | ||
@@ -565,2 +579,3 @@ [`postcss-brand-colors`]: https://github.com/postcss/postcss-brand-colors | ||
[`postcss-nested-props`]: https://github.com/jedmao/postcss-nested-props | ||
[`postcss-nested-vars`]: https://github.com/jedmao/postcss-nested-vars | ||
[`postcss-color-alpha`]: https://github.com/avanes/postcss-color-alpha | ||
@@ -591,2 +606,4 @@ [`postcss-color-scale`]: https://github.com/kristoferjoseph/postcss-color-scale | ||
[`postcss-image-set`]: https://github.com/alex499/postcss-image-set | ||
[`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg | ||
[`postcss-instagram`]: https://github.com/azat-io/postcss-instagram | ||
[`postcss-clearfix`]: https://github.com/seaneking/postcss-clearfix | ||
@@ -627,2 +644,3 @@ [`postcss-colormin`]: https://github.com/ben-eb/colormin | ||
[`mq4-hover-shim`]: https://github.com/twbs/mq4-hover-shim | ||
[`postcss-atroot`]: https://github.com/OEvgeny/postcss-atroot | ||
[`postcss-focus`]: https://github.com/postcss/postcss-focus | ||
@@ -633,3 +651,2 @@ [`postcss-apply`]: https://github.com/pascalduez/postcss-apply | ||
[`postcss-match`]: https://github.com/rtsao/postcss-match | ||
[`postcss-short`]: https://github.com/jonathantneal/postcss-short | ||
[`postcss-alias`]: https://github.com/seaneking/postcss-alias | ||
@@ -666,2 +683,3 @@ [`perfectionist`]: https://github.com/ben-eb/perfectionist | ||
[`rtlcss`]: https://github.com/MohammadYounes/rtlcss | ||
[`short`]: https://github.com/jonathantneal/postcss-short | ||
[`lost`]: https://github.com/corysimmons/lost | ||
@@ -668,0 +686,0 @@ |
329420
748
5262