Skip to content

Commit 2a6813b

Browse files
author
dutchenkoOleg
committed
Adds types. Updates the description. Closes #4 issue
1 parent 78c58ec commit 2a6813b

File tree

9 files changed

+26
-167
lines changed

9 files changed

+26
-167
lines changed

CHANGELOG-RU.md

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

CHANGELOG.md

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

CONTRIBUTING-RU.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
Проверьте [баг трекер](https://github.com/dutchenkoOleg/sort-css-media-queries/issues) и [список запросов](https://github.com/dutchenkoOleg/sort-css-media-queries/pulls) на предмет уже созданных тем с их обсуждением. Возможно Вы не первые кто сталкивается с какой-то проблемой или хочет предложить свою реализацию.
1414

15-
Также следует ознакомится с [Историей изменений проекта](./CHANGELOG-RU.md) и [Кодексом поведения](./CODE_OF_CONDUCT-RU.md).
15+
Также следует ознакомится с ["Релиз ноутами"](https://github.com/dutchenkoOleg/sort-css-media-queries/releases) и [Кодексом поведения](./CODE_OF_CONDUCT-RU.md).
1616

1717
---
1818

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Contributions welcome!
1313
Please search [issues](https://github.com/dutchenkoOleg/sort-css-media-queries/issues) and [pull requests](https://github.com/dutchenkoOleg/sort-css-media-queries/pulls) before adding something new to avoid duplicating
1414
efforts and conversations.
1515

16-
Also, you should read the [Change log](./CHANGELOG.md) and the [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md).
16+
Also, you should read the [Release notes](https://github.com/dutchenkoOleg/sort-css-media-queries/releases) and the [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md).
1717

1818
---
1919

README-RU.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# sort-css-media-queries
22

3+
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4+
![types](https://img.shields.io/badge/types-TypeScript-blue)
35
![npm](https://img.shields.io/badge/node-6.3.0-yellow.svg)
4-
![es2015](https://img.shields.io/badge/ECMAScript-2015_(ES6)-blue.svg)
56
![license](https://img.shields.io/badge/License-MIT-orange.svg)
67
[![Build Status](https://travis-ci.org/dutchenkoOleg/sort-css-media-queries.svg?branch=master)](https://travis-ci.org/dutchenkoOleg/sort-css-media-queries)
78

@@ -12,7 +13,11 @@
1213

1314
> Пользовательский метод сортировки (mobile-first / desktop-first) для [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) или [`pleeease`](https://www.npmjs.com/package/pleeease) (который использует css-mqpacker) или, возможно, для чего-то еще ))
1415
15-
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
16+
## Альтернатива `mqpacker`
17+
18+
https://github.com/hail2u/node-css-mqpacker - устарел!
19+
Одним из альтернативных плагинов может послужить - [postcss-sort-media-queries](https://github.com/solversgroup/postcss-sort-media-queries)
20+
1621

1722
## Установка
1823

@@ -143,7 +148,7 @@ postcss([
143148

144149
## Информация о проекте
145150

146-
* [История изменений](./CHANGELOG-RU.md)
151+
* ["Релиз ноуты"](https://github.com/dutchenkoOleg/sort-css-media-queries/releases)
147152
* [Руководство по содействию проекту](./CONTRIBUTING-RU.md)
148153
* [Кодекс поведения](./CODE_OF_CONDUCT-RU.md)
149154
* [Лицензия MIT](./LICENSE)

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# sort-css-media-queries
22

3+
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4+
![types](https://img.shields.io/badge/types-TypeScript-blue)
35
![npm](https://img.shields.io/badge/node-6.3.0-yellow.svg)
4-
![es2015](https://img.shields.io/badge/ECMAScript-2015_(ES6)-blue.svg)
56
![license](https://img.shields.io/badge/License-MIT-orange.svg)
67
[![Build Status](https://travis-ci.org/dutchenkoOleg/sort-css-media-queries.svg?branch=master)](https://travis-ci.org/dutchenkoOleg/sort-css-media-queries)
78

@@ -13,7 +14,11 @@
1314

1415
> The custom `sort` method (mobile-first / desktop-first) for [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) or [`pleeease`](https://www.npmjs.com/package/pleeease) (which uses css-mqpacker) or, perhaps, something else ))
1516
16-
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
17+
## Alternative to `mqpacker`
18+
19+
https://github.com/hail2u/node-css-mqpacker is deprecated.
20+
One of the alternative plugins may be - [postcss-sort-media-queries](https://github.com/solversgroup/postcss-sort-media-queries)
21+
1722

1823
## Installing
1924

@@ -137,7 +142,7 @@ The plugin will sort your media-queries according to the desktop-first methodolo
137142

138143
## Project Info
139144

140-
* [Change log](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CHANGELOG.md)
145+
* [Release notes](https://github.com/dutchenkoOleg/sort-css-media-queries/releases)
141146
* [Contributing Guidelines](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CONTRIBUTING.md)
142147
* [Contributor Covenant Code of Conduct](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CODE_OF_CONDUCT.md)
143148
* [License MIT](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/LICENSE)

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export = sortCSSmq
2+
declare function sortCSSmq<T = string>(a: T, b: T): number
3+
declare namespace sortCSSmq {
4+
function desktopFirst<T = string>(a: T, b: T): number
5+
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* @module sort-css-media-queries
1010
* @author Oleg Dutchenko <[email protected]>
11-
* @version 1.4.0
11+
* @version 1.5.0
1212
*/
1313

1414
// ----------------------------------------

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sort-css-media-queries",
3-
"version": "1.4.3",
4-
"description": "The custom `sort` method (mobile-first / desktop-first) of CSS media queries for `css-mqpacker` or `pleeease` (which uses css-mqpacker) or, perhaps, something else ))",
3+
"version": "1.5.0",
4+
"description": "The custom `sort` method (mobile-first / desktop-first) of CSS media queries for `postcss-sort-media-queries`, `css-mqpacker` or `pleeease` (which uses css-mqpacker) or, perhaps, something else ))",
55
"main": "index.js",
66
"scripts": {
77
"test": "npm run standard && npm run jest",

0 commit comments

Comments
 (0)