Skip to content

Commit

Permalink
Adds types. Updates the description. Closes #4 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchenkoOleg committed Nov 27, 2019
1 parent 78c58ec commit 2a6813b
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 167 deletions.
78 changes: 0 additions & 78 deletions CHANGELOG-RU.md

This file was deleted.

78 changes: 0 additions & 78 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING-RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

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

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

---

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Contributions welcome!
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
efforts and conversations.

Also, you should read the [Change log](./CHANGELOG.md) and the [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md).
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).

---

Expand Down
11 changes: 8 additions & 3 deletions README-RU.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# sort-css-media-queries

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

Expand All @@ -12,7 +13,11 @@

> Пользовательский метод сортировки (mobile-first / desktop-first) для [`css-mqpacker`](https://www.npmjs.com/package/css-mqpacker) или [`pleeease`](https://www.npmjs.com/package/pleeease) (который использует css-mqpacker) или, возможно, для чего-то еще ))
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
## Альтернатива `mqpacker`

https://github.com/hail2u/node-css-mqpacker - устарел!
Одним из альтернативных плагинов может послужить - [postcss-sort-media-queries](https://github.com/solversgroup/postcss-sort-media-queries)


## Установка

Expand Down Expand Up @@ -143,7 +148,7 @@ postcss([

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

* [История изменений](./CHANGELOG-RU.md)
* ["Релиз ноуты"](https://github.com/dutchenkoOleg/sort-css-media-queries/releases)
* [Руководство по содействию проекту](./CONTRIBUTING-RU.md)
* [Кодекс поведения](./CODE_OF_CONDUCT-RU.md)
* [Лицензия MIT](./LICENSE)
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# sort-css-media-queries

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

Expand All @@ -13,7 +14,11 @@

> 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 ))
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
## Alternative to `mqpacker`

https://github.com/hail2u/node-css-mqpacker is deprecated.
One of the alternative plugins may be - [postcss-sort-media-queries](https://github.com/solversgroup/postcss-sort-media-queries)


## Installing

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

## Project Info

* [Change log](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CHANGELOG.md)
* [Release notes](https://github.com/dutchenkoOleg/sort-css-media-queries/releases)
* [Contributing Guidelines](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CONTRIBUTING.md)
* [Contributor Covenant Code of Conduct](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/CODE_OF_CONDUCT.md)
* [License MIT](https://github.com/dutchenkoOleg/sort-css-media-queries/blob/master/LICENSE)
Expand Down
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export = sortCSSmq
declare function sortCSSmq<T = string>(a: T, b: T): number
declare namespace sortCSSmq {
function desktopFirst<T = string>(a: T, b: T): number
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @module sort-css-media-queries
* @author Oleg Dutchenko <dutchenko.o.wezom@gmail.com>
* @version 1.4.0
* @version 1.5.0
*/

// ----------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sort-css-media-queries",
"version": "1.4.3",
"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 ))",
"version": "1.5.0",
"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 ))",
"main": "index.js",
"scripts": {
"test": "npm run standard && npm run jest",
Expand Down

0 comments on commit 2a6813b

Please sign in to comment.