Skip to content

Commit 84922b1

Browse files
committed
Merge pull request #9 from w0rm/7-use-postcss-3
Updated PostCSS to 3.0 and fixed tests
2 parents c7c7ff7 + 7b43804 commit 84922b1

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ return gulp.src('./src/*.css')
6666
6767
## Changelog
6868
69+
* 3.0.0
70+
* Updated PostCSS to 3.0 and fixed tests
71+
6972
* 2.0.1
7073
* Added Changelog
7174
* Added example for a custom processor in README

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-postcss",
3-
"version": "2.0.1",
3+
"version": "3.0.0",
44
"description": "PostCSS gulp plugin",
55
"main": "index.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
"homepage": "https://github.com/w0rm/gulp-postcss",
2424
"dependencies": {
2525
"gulp-util": "^3.0.0",
26-
"postcss": "^2.1.2",
26+
"postcss": "^3.0.0",
2727
"through2": "^0.6.1",
2828
"vinyl-sourcemaps-apply": "^0.1.1"
2929
},

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ it('should correctly wrap postcss errors', function (cb) {
3838
})
3939

4040
stream.write(new gutil.File({
41-
contents: new Buffer('a {\n a b {}\n}')
41+
contents: new Buffer('a {')
4242
}))
4343

4444
stream.end()
@@ -67,7 +67,7 @@ it ('should generate source maps', function (cb) {
6767
.pipe(write)
6868

6969
write.on('data', function (file) {
70-
assert.equal(file.sourceMap.mappings, 'AAAA,IAAI,cAAA,AAAa,cAAb,AAAa,cAAb,AAAa,aAAA,EAAC')
70+
assert.equal(file.sourceMap.mappings, 'AAAA,IAAI,cAAA,AAAY,cAAZ,AAAY,cAAZ,AAAY,aAAA,EAAE')
7171
assert(/sourceMappingURL=data:application\/json;base64/.test(file.contents.toString()))
7272
cb()
7373
})

0 commit comments

Comments
 (0)