Skip to content

Commit f0f9862

Browse files
committed
Update v1.2.0
1 parent 29b4df9 commit f0f9862

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"boss": true,
1111
"eqnull": true,
1212
"node": true,
13-
"es5": true
13+
"es5": false
1414
}

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
## Getting Started
66

7-
This plugin requires Grunt `~0.4.1`.
7+
This plugin requires Grunt `0.4.x`.
88

99
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1010

@@ -38,11 +38,11 @@ grunt.initConfig({
3838

3939
### Options
4040

41-
#### options.sortOrder
41+
#### options.config
4242
Type: `String`
4343
Default value: `null`
4444

45-
A string value that is used to specify custom-sort-order.json file path.
45+
A string value that is used to specify custom-csscomb.json file path.
4646

4747

4848
### Usage Examples
@@ -65,13 +65,13 @@ grunt.initConfig({
6565

6666
#### Custom Options
6767

68-
You can set the `sortOrder` option if you want to use the order to which you are accustomed to.
68+
You can set the `config` option if you want to use the configuration which you are accustomed to.
6969

7070
```js
7171
grunt.initConfig({
7272
csscomb: {
7373
options: {
74-
sortOrder: '/path/to/custom-sort-order.json'
74+
config: '/path/to/config.json'
7575
},
7676
files: {
7777
'dest/resorted-foo.css': ['src/foo.css'],
@@ -82,10 +82,11 @@ grunt.initConfig({
8282

8383
## Release History
8484

85+
+ v1.2.0: Update csscomb.js to version 2.0 and change `sortOrder` to `config`.
8586
+ v1.1.0: Improve process.
8687
+ v1.0.0: Support [csscomb.js](http://github.com/csscomb/csscomb.js).
8788
+ v0.5.0: Enable multiple files.
8889
+ v0.4.0: Move to csscomb's repository.
8990
+ v0.3.0: Fix sort option bug.
9091
+ v0.2.0: Fix bugs.
91-
+ v0.1.0: Release.
92+
+ v0.1.0: Release.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "grunt-csscomb",
33
"description": "The grunt plugin for sorting CSS properties in specific order.",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"homepage": "https://github.com/csscomb/grunt-csscomb",
66
"author": {
77
"name": "Koji Ishimoto",
88
"email": "ijok.ijok@gmail.com",
9-
"url": "http://en.t32k.me"
9+
"url": "http://t32k.me/"
1010
},
11+
"contributors": ['Tony Ganch'],
1112
"repository": {
1213
"type": "git",
1314
"url": "https://github.com/csscomb/grunt-csscomb.git"
@@ -35,10 +36,10 @@
3536
"grunt-contrib-jshint": "~0.6.0",
3637
"grunt-contrib-clean": "~0.4.0",
3738
"grunt-contrib-nodeunit": "~0.2.0",
38-
"grunt": "~0.4.1"
39+
"grunt": "0.4.x"
3940
},
4041
"peerDependencies": {
41-
"grunt": "~0.4.1"
42+
"grunt": "0.4.x"
4243
},
4344
"keywords": [
4445
"gruntplugin",

tasks/csscomb.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ module.exports = function (grunt) {
1414
grunt.registerMultiTask('csscomb', 'Sorting CSS properties in specific order.', function () {
1515

1616
var Comb = require('csscomb'),
17-
comb = new Comb();
17+
comb = new Comb();
1818

1919
function getConfigPath(configPath) {
2020
var HOME = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE;
2121

2222
configPath = configPath || process.cwd() + '/.csscomb.json';
2323

2424
// If we've finally found a config, return its path:
25-
if (grunt.file.exists(configPath)) return configPath;
26-
25+
if (grunt.file.exists(configPath)) {
26+
return configPath;
27+
}
2728
// If we are in HOME dir already and yet no config file, quit:
28-
if (path.dirname(configPath) === HOME) return;
29+
if (path.dirname(configPath) === HOME) {
30+
return;
31+
}
2932

3033
// If there is no config in this directory, go one level up and look for
3134
// a config there:
@@ -70,4 +73,4 @@ module.exports = function (grunt) {
7073
});
7174
});
7275
});
73-
};
76+
};

0 commit comments

Comments
 (0)