Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit 41364c3

Browse files
committed
Update to postcss-sorting@2.0.1
1 parent a1c01d3 commit 41364c3

File tree

145 files changed

+4042
-18243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+4042
-18243
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## 2.0.0
6+
7+
* Update to postcss-sorting@2.0.1
8+
* Config for 2.0.0 is incompatible with previous configs. Please read migration guide and docs https://github.com/hudochenkov/postcss-sorting#migration-from-1x
9+
510
## 1.7.0
611
* Update to postcss-sorting@1.7.0
712

PostCSSSorting.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ def run(self, edit):
5454
def sorting(self, data):
5555
try:
5656
return node_bridge(data, BIN_PATH, [json.dumps({
57-
'sort-order': get_setting(self.view, 'sort-order'),
58-
'empty-lines-between-children-rules': get_setting(self.view, 'empty-lines-between-children-rules'),
59-
'empty-lines-between-media-rules': get_setting(self.view, 'empty-lines-between-media-rules'),
60-
'preserve-empty-lines-between-children-rules': get_setting(self.view, 'preserve-empty-lines-between-children-rules')
57+
'order': get_setting(self.view, 'order'),
58+
'properties-order': get_setting(self.view, 'properties-order'),
59+
'unspecified-properties-position': get_setting(self.view, 'unspecified-properties-position'),
60+
'clean-empty-lines': get_setting(self.view, 'clean-empty-lines'),
61+
'rule-nested-empty-line-before': get_setting(self.view, 'rule-nested-empty-line-before'),
62+
'at-rule-nested-empty-line-before': get_setting(self.view, 'at-rule-nested-empty-line-before'),
63+
'declaration-empty-line-before': get_setting(self.view, 'declaration-empty-line-before'),
64+
'custom-property-empty-line-before': get_setting(self.view, 'custom-property-empty-line-before'),
65+
'dollar-variable-empty-line-before': get_setting(self.view, 'dollar-variable-empty-line-before'),
66+
'comment-empty-line-before': get_setting(self.view, 'comment-empty-line-before')
6167
})])
6268
except Exception as e:
6369
sublime.error_message('PostCSS Sorting\n%s' % e)

PostCSSSorting.sublime-settings

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
{
2-
// Sort order. Please visit https://github.com/hudochenkov/postcss-sorting for all rules and predefined configs
3-
"sort-order": "default",
4-
5-
// Set a number of empty lines between nested children rules
6-
"empty-lines-between-children-rules": 0,
7-
8-
// Set a number of empty lines between nested media rules
9-
"empty-lines-between-media-rules": 0,
10-
11-
// Preserve empty lines between children rules and preserve empty lines for comments between children rules
12-
"preserve-empty-lines-between-children-rules": false,
2+
// Please visit https://github.com/hudochenkov/postcss-sorting#options for all plugin options
133

144
// Set true to sort on save every file with supported syntax
155
"sort-on-save": false

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Works only with CSS, SCSS and PostCSS.
1111

1212
Install `PostCSS Sorting` with [Package Control](https://packagecontrol.io/) and restart Sublime Text.
1313

14-
**You need to have [Node.js](https://nodejs.org) >= 0.12.0 installed.**
14+
**You need to have [Node.js](https://nodejs.org) >= 4.0.0 installed.**
1515
Make sure it's in your $PATH by running `node -v` in your command-line.
1616
On OS X you need to make sure it's in `/usr/local/bin` or symlink it there.
1717

@@ -27,17 +27,13 @@ There is keyboard shortcut also: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>S</kb
2727

2828
*(Preferences → Package Settings → PostCSS Sorting → Settings - User)*
2929

30-
You can specify sort order and grouping. See the [postcss-sorting documentation](https://github.com/hudochenkov/postcss-sorting#options) for all rules and predefined configs.
30+
You can specify sort order and other options. See the [postcss-sorting documentation](https://github.com/hudochenkov/postcss-sorting#options) for all options.
3131

3232

3333
#### Default
3434

3535
```json
3636
{
37-
"sort-order": "default",
38-
"empty-lines-between-children-rules": 0,
39-
"empty-lines-between-media-rules": 0,
40-
"preserve-empty-lines-between-children-rules": false,
4137
"sort-on-save": false
4238
}
4339
```
@@ -53,7 +49,7 @@ Example:
5349
{
5450
"settings": {
5551
"PostCSSSorting": {
56-
"sort-order": ["padding", "margin"],
52+
"properties-order": ["padding", "margin"],
5753
"sort-on-save": true
5854
}
5955
}

messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"1.2.0": "messages/1.2.0.txt",
44
"1.3.0": "messages/1.3.0.txt",
55
"1.4.0": "messages/1.4.0.txt",
6-
"1.5.0": "messages/1.5.0.txt"
6+
"1.5.0": "messages/1.5.0.txt",
7+
"2.0.0": "messages/2.0.0.txt"
78
}

messages/2.0.0.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Version 2.0.0
2+
3+
BREAKING CHANGES RELEASE!
4+
5+
* Update to postcss-sorting@2.0.1
6+
* Config for 2.0.0 is incompatible with previous configs. Please read migration guide and docs https://github.com/hudochenkov/postcss-sorting#migration-from-1x

node_modules/object-assign/index.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

node_modules/object-assign/license

Lines changed: 0 additions & 21 deletions
This file was deleted.

node_modules/object-assign/package.json

Lines changed: 0 additions & 114 deletions
This file was deleted.

node_modules/object-assign/readme.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)