postcss-ordered-values
Advanced tools
Comparing version
@@ -0,1 +1,5 @@ | ||
# 2.2.2 | ||
* Now will not re-order box-shadow values containing `calc()` definitions. | ||
# 2.2.1 | ||
@@ -2,0 +6,0 @@ |
@@ -24,3 +24,3 @@ 'use strict'; | ||
function normalizeBorder(decl) { | ||
if (! ~borderProps.indexOf(decl.prop)) { | ||
if (!~borderProps.indexOf(decl.prop)) { | ||
return; | ||
@@ -27,0 +27,0 @@ } |
@@ -47,3 +47,3 @@ 'use strict'; | ||
arg.forEach(function (node) { | ||
if (node.type === 'comment' || node.type === 'function' && node.value === 'var') { | ||
if (node.type === 'comment' || node.type === 'function' && (node.value === 'var' || ~node.value.indexOf('calc'))) { | ||
abort = true; | ||
@@ -50,0 +50,0 @@ return; |
@@ -20,3 +20,3 @@ 'use strict'; | ||
function normalizeFlexFlow(decl) { | ||
if (! ~flexFlowProps.indexOf(decl.prop)) { | ||
if (!~flexFlowProps.indexOf(decl.prop)) { | ||
return; | ||
@@ -27,3 +27,6 @@ } | ||
(function () { | ||
var order = { direction: '', wrap: '' }; | ||
var order = { | ||
direction: '', | ||
wrap: '' | ||
}; | ||
var abort = false; | ||
@@ -30,0 +33,0 @@ flexFlow.walk(function (node) { |
{ | ||
"name": "postcss-ordered-values", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Ensure values are ordered consistently in your CSS.", | ||
@@ -11,5 +11,8 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"contributorAdd": "all-contributors add", | ||
"contributorGenerate": "all-contributors generate", | ||
"pretest": "eslint src", | ||
"prepublish": "de dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/", | ||
"test": "ava src/__tests__" | ||
"prepublish": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/", | ||
"test": "ava", | ||
"test-012": "ava" | ||
}, | ||
@@ -23,12 +26,16 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "^0.11.0", | ||
"all-contributors-cli": "^3.0.5", | ||
"ava": "^0.16.0", | ||
"babel-cli": "^6.3.17", | ||
"babel-core": "^6.3.26", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
"babel-preset-stage-0": "^6.3.13", | ||
"del-cli": "^0.1.2", | ||
"eslint": "^1.10.3", | ||
"eslint-config-cssnano": "^1.0.0" | ||
"babel-register": "^6.9.0", | ||
"del-cli": "^0.2.0", | ||
"eslint": "^3.0.0", | ||
"eslint-config-cssnano": "^3.0.0", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-import": "^1.10.2" | ||
}, | ||
@@ -47,3 +54,3 @@ "homepage": "https://github.com/ben-eb/postcss-ordered-values", | ||
"ava": { | ||
"require": "babel-core/register" | ||
"require": "babel-register" | ||
}, | ||
@@ -50,0 +57,0 @@ "eslintConfig": { |
@@ -5,2 +5,3 @@ # [postcss][postcss]-ordered-values [][ci] [][npm] [][deps] | ||
## Install | ||
@@ -14,2 +15,3 @@ | ||
## Example | ||
@@ -44,2 +46,3 @@ | ||
## Support List | ||
@@ -55,2 +58,3 @@ | ||
## Usage | ||
@@ -61,7 +65,16 @@ | ||
## Contributing | ||
Pull requests are welcome. If you add functionality, then please add unit tests | ||
to cover it. | ||
## Contributors | ||
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
| [<img src="https://avatars.githubusercontent.com/u/1282980?v=3" width="100px;"/><br /><sub>Ben Briggs</sub>](http://beneb.info)<br />[💻](https://github.com/ben-eb/postcss-ordered-values/commits?author=ben-eb) [📖](https://github.com/ben-eb/postcss-ordered-values/commits?author=ben-eb) 👀 [⚠️](https://github.com/ben-eb/postcss-ordered-values/commits?author=ben-eb) | [<img src="https://avatars.githubusercontent.com/u/2784308?v=3" width="100px;"/><br /><sub>一丝</sub>](www.iyunlu.com/view)<br />[💻](https://github.com/ben-eb/postcss-ordered-values/commits?author=yisibl) [⚠️](https://github.com/ben-eb/postcss-ordered-values/commits?author=yisibl) | [<img src="https://avatars.githubusercontent.com/u/5635476?v=3" width="100px;"/><br /><sub>Bogdan Chadkin</sub>](https://github.com/TrySound)<br />[💻](https://github.com/ben-eb/postcss-ordered-values/commits?author=TrySound) [⚠️](https://github.com/ben-eb/postcss-ordered-values/commits?author=TrySound) | [<img src="https://avatars.githubusercontent.com/u/497260?v=3" width="100px;"/><br /><sub>Ambroos Vaes</sub>](https://github.com/Ambroos)<br />[🐛](https://github.com/ben-eb/postcss-ordered-values/issues?q=author%3AAmbroos) | | ||
| :---: | :---: | :---: | :---: | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors] specification. Contributions of | ||
any kind welcome! | ||
## License | ||
@@ -71,2 +84,4 @@ | ||
[all-contributors]: https://github.com/kentcdodds/all-contributors | ||
[ci]: https://travis-ci.org/ben-eb/postcss-ordered-values | ||
@@ -73,0 +88,0 @@ [deps]: https://gemnasium.com/ben-eb/postcss-ordered-values |
18826
11.65%292
1.04%85
21.43%14
40%