Skip to content

Commit 73b2b3b

Browse files
committed
Merge pull request #30 from csscomb/tg/csscomb-3
CSScomb 3.0
2 parents e20f56e + efca048 commit 73b2b3b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-csscomb",
33
"description": "The grunt plugin for sorting CSS properties in specific order.",
4-
"version": "2.0.1",
4+
"version": "3.0.0-1",
55
"homepage": "https://github.com/csscomb/grunt-csscomb",
66
"author": [
77
{
@@ -43,16 +43,16 @@
4343
"test": "grunt test"
4444
},
4545
"dependencies": {
46-
"csscomb": "~2.0.0"
46+
"csscomb": "~3.0.0"
4747
},
4848
"devDependencies": {
49-
"grunt-contrib-jshint": "~0.6.0",
50-
"grunt-contrib-clean": "~0.4.0",
51-
"grunt-contrib-nodeunit": "~0.2.0",
52-
"grunt": "~0.4.2"
49+
"grunt": "^0.4.5",
50+
"grunt-contrib-clean": "^0.4.0",
51+
"grunt-contrib-jshint": "^0.10.0",
52+
"grunt-contrib-nodeunit": "^0.4.0"
5353
},
5454
"peerDependencies": {
55-
"grunt": "~0.4.2"
55+
"grunt": "^0.4.5"
5656
},
5757
"keywords": [
5858
"gruntplugin",
@@ -61,4 +61,4 @@
6161
"SCSS",
6262
"LESS"
6363
]
64-
}
64+
}

tasks/csscomb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = function (grunt) {
5454
config = grunt.file.readJSON(config);
5555
} else {
5656
grunt.log.ok('Using default config file...');
57-
config = comb.getConfig('csscomb');
57+
config = Comb.getConfig('csscomb');
5858
}
5959

6060
// Configure csscomb:
@@ -78,7 +78,7 @@ module.exports = function (grunt) {
7878
// Comb it:
7979
grunt.log.ok('Sorting file "' + src + '"...');
8080
var syntax = src.split('.').pop();
81-
var combed = comb.processString(css, syntax);
81+
var combed = comb.processString(css, { syntax: syntax });
8282
grunt.file.write(f.dest, combed);
8383
});
8484
});

0 commit comments

Comments
 (0)