gulp-postcss
Advanced tools
Comparing version 6.0.1 to 6.1.0
@@ -18,2 +18,6 @@ var Stream = require('stream') | ||
if (file.isNull()) { | ||
return cb(null, file) | ||
} | ||
if (file.isStream()) { | ||
@@ -20,0 +24,0 @@ return handleError('Streams are not supported!') |
{ | ||
"name": "gulp-postcss", | ||
"version": "6.0.1", | ||
"version": "6.1.0", | ||
"description": "PostCSS gulp plugin", | ||
@@ -26,13 +26,13 @@ "main": "index.js", | ||
"dependencies": { | ||
"gulp-util": "^3.0.4", | ||
"postcss": "^5.0.0", | ||
"gulp-util": "^3.0.7", | ||
"postcss": "^5.0.14", | ||
"vinyl-sourcemaps-apply": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"es6-promise": "^2.0.1", | ||
"es6-promise": "^3.0.2", | ||
"gulp-sourcemaps": "^1.5.1", | ||
"mocha": "^2.2.5", | ||
"proxyquire": "^1.5.0", | ||
"sinon": "^1.14.1" | ||
"proxyquire": "^1.7.4", | ||
"sinon": "^1.17.3" | ||
} | ||
} |
@@ -97,2 +97,6 @@ # gulp-postcss [](https://travis-ci.org/postcss/gulp-postcss) | ||
* 6.1.0 | ||
* Support for `null` files | ||
* Updated dependencies | ||
* 6.0.1 | ||
@@ -99,0 +103,0 @@ * Added an example and a test to pass options to PostCSS (e.g. `syntax` option) |
16
test.js
@@ -11,2 +11,18 @@ /* global it, afterEach, beforeEach, describe, Promise */ | ||
it('should pass file when it isNull()', function (cb) { | ||
var stream = postcss([ doubler ]) | ||
var emptyFile = { | ||
isNull: function () { return true } | ||
} | ||
stream.once('data', function (data) { | ||
assert.equal(data, emptyFile) | ||
cb() | ||
}) | ||
stream.write(emptyFile) | ||
stream.end() | ||
}) | ||
it('should transform css with multiple processors', function (cb) { | ||
@@ -13,0 +29,0 @@ |
15738
313
178
Updatedgulp-util@^3.0.7
Updatedpostcss@^5.0.14