postcss-partial-import
Advanced tools
Comparing version
@@ -0,1 +1,10 @@ | ||
# Changes to PostCSS Nesting | ||
### 4.0.0 (May 11, 2017) | ||
- Added: PostCSS v6 compatibility | ||
- Added: Node v4 compatibility | ||
- Added: .editorconfig | ||
- Removed: echoing | ||
### 3.1.1 (February 14, 2017) | ||
@@ -2,0 +11,0 @@ |
11
index.js
@@ -9,3 +9,3 @@ // tooling | ||
'postcss-partial-import', | ||
(opts = {}) => processor( | ||
(opts) => processor( | ||
Object.assign( | ||
@@ -19,3 +19,3 @@ { | ||
opts, | ||
opts.resolve ? { | ||
opts && opts.resolve ? { | ||
resolve: opts.resolve | ||
@@ -28,8 +28,1 @@ } : { | ||
); | ||
// override plugin#process | ||
module.exports.process = function (cssString, pluginOptions, processOptions) { | ||
return postcss([ | ||
0 in arguments ? module.exports(pluginOptions) : module.exports() | ||
]).process(cssString, processOptions); | ||
}; |
@@ -6,6 +6,6 @@ // tooling | ||
// mkdir, then-ified | ||
module.exports = (dir, ...args) => new Promise( | ||
module.exports = (dir, args) => new Promise( | ||
(resolve, reject) => fs.mkdir( | ||
dir, | ||
...args, | ||
args, | ||
// if there is no parent directory | ||
@@ -15,4 +15,4 @@ (error) => error && error.code === 'ENOENT' | ||
? resolve( | ||
module.exports(path.dirname(dir), ...args).then( | ||
() => module.exports(dir, ...args) | ||
module.exports(path.dirname(dir), args).then( | ||
() => module.exports(dir, args) | ||
) | ||
@@ -19,0 +19,0 @@ ) |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
// tooling | ||
@@ -2,0 +4,0 @@ const escapeRegExp = require('./escape-reg-exp'); |
@@ -1,2 +0,1 @@ | ||
# CC0 1.0 Universal | ||
@@ -3,0 +2,0 @@ |
{ | ||
"name": "postcss-partial-import", | ||
"version": "3.1.1", | ||
"version": "4.0.0", | ||
"description": "Inline sugary @import statements in CSS", | ||
@@ -16,6 +16,7 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"scripts": { | ||
"lint": "echint && eslint *.js lib/*.js", | ||
"clean": "git clean -X -d -f", | ||
"prepublish": "npm test", | ||
"tape": "postcss-tape", | ||
"test": "npm run lint && postcss-tape" | ||
"test": "echo 'Running tests...'; npm run test:js && npm run test:tape", | ||
"test:js": "eslint *.js --cache --ignore-pattern .gitignore", | ||
"test:tape": "postcss-tape" | ||
}, | ||
@@ -27,24 +28,16 @@ "engines": { | ||
"glob": "^7.1.1", | ||
"postcss-import": "^9.0.0" | ||
"postcss": "^6.0.1", | ||
"postcss-import": "^9.1.0" | ||
}, | ||
"devDependencies": { | ||
"echint": "^2.1.0", | ||
"echint-config-dev": "1.0.0", | ||
"eslint": "^3.12.1", | ||
"eslint-config-dev": "1.0.0", | ||
"eslint": "^3.19.0", | ||
"eslint-config-dev": "2.0.0", | ||
"normalize-css": "^2.3.1", | ||
"postcss-tape": "1.3.0" | ||
"postcss": "^6.0.1", | ||
"postcss-tape": "2.0.1", | ||
"pre-commit": "^1.2.2" | ||
}, | ||
"echint": { | ||
"eslintConfig": { | ||
"extends": "dev" | ||
}, | ||
"eslintConfig": { | ||
"extends": "dev", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"no-nested-ternary": [0] | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -51,0 +44,0 @@ "postcss", |
18112
-0.58%3
50%155
-3.12%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated