postcss-initial
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,7 +0,6 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
## [Unreleased] | ||
### [3.0.2](https://github.com/maximkoretskiy/postcss-initial/compare/v3.0.1...v3.0.2) (2019-10-31) | ||
@@ -8,0 +7,0 @@ ## [3.0.1] - 2019-08-09 |
@@ -46,13 +46,13 @@ var template = require('lodash.template'); | ||
return inputDecls | ||
.filter(function (decl) { | ||
return !decl.contains; | ||
}).map(function (decl) { | ||
var dependensy = requiredMap[decl.prop]; | ||
if (dependensy) { | ||
decl.requiredBy = dependensy.prop; | ||
decl.basic = decl.basic || dependensy.basic; | ||
decl.inherited = decl.inherited || dependensy.inherited; | ||
} | ||
return decl; | ||
}); | ||
.filter(function (decl) { | ||
return !decl.contains; | ||
}).map(function (decl) { | ||
var dependensy = requiredMap[decl.prop]; | ||
if (dependensy) { | ||
decl.requiredBy = dependensy.prop; | ||
decl.basic = decl.basic || dependensy.basic; | ||
decl.inherited = decl.inherited || dependensy.inherited; | ||
} | ||
return decl; | ||
}); | ||
} | ||
@@ -59,0 +59,0 @@ |
{ | ||
"name": "postcss-initial", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "PostCSS plugin to fallback initial keyword.", | ||
@@ -23,4 +23,6 @@ "keywords": [ | ||
"chai": "3.5.0", | ||
"eslint": "^3.19.0", | ||
"mocha": "^3.3.0" | ||
"eslint": "^4.18.2", | ||
"mocha": "^3.3.0", | ||
"husky": "^3.0.9", | ||
"standard-version": "^7.0.0" | ||
}, | ||
@@ -30,4 +32,16 @@ "scripts": { | ||
"test": "npm run lint && mocha", | ||
"tdd": "mocha -w --watch-extensions js,json,css" | ||
"tdd": "mocha -w --watch-extensions js,json,css", | ||
"release": "standard-version" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn test", | ||
"pre-push": "yarn test" | ||
} | ||
}, | ||
"standard-version": { | ||
"scripts": { | ||
"prerelease": "yarn test" | ||
} | ||
} | ||
} |
119661
5
541