Skip to content

Upgrade to PostCSS 4.1.x #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,5 @@
"requireCapitalizedConstructors": true,
"safeContextKeyword": "that",
"requireDotNotation": true,
"validateJSDoc": {
"checkParamNames": true,
"checkRedundantParams": true,
"requireParamTypes": true
},
"requireSpaceAfterLineComment": true
}
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var postcss = require("postcss");

/**
* font variant convertion map
*
Expand Down Expand Up @@ -84,7 +86,7 @@ function getFontFeatureSettingsPrevTo(decl) {
/**
* Expose the font-variant plugin.
*/
module.exports = function postcssFontVariant() {
module.exports = postcss.plugin("postcss-font-variant", function() {
return function(styles) {
styles.eachRule(function(rule) {
var fontFeatureSettings = null
Expand Down Expand Up @@ -116,4 +118,4 @@ module.exports = function postcssFontVariant() {
})
})
}
}
})
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"css",
"postcss",
"postcss-plugins",
"postcss-plugin",
"font",
"variant",
"font-variant"
Expand All @@ -21,12 +21,13 @@
"LICENSE",
"index.js"
],
"dependencies": {},
"dependencies": {
"postcss": "^4.1.16"
},
"devDependencies": {
"jscs": "^1.6.2",
"jshint": "^2.5.6",
"postcss": "^4.0.2",
"tape": "^3.0.0"
"jscs": "^2.1.0",
"jshint": "^2.8.0",
"tape": "^4.0.3"
},
"scripts": {
"lint": "jscs *.js **/*.js && jshint . --exclude-path .gitignore",
Expand Down