Skip to content

Commit 6fe0fa9

Browse files
authored
Merge pull request #84 from vkalinichev/dependencies-update
Dependencies update
2 parents 363bd7b + 318d3e5 commit 6fe0fa9

15 files changed

+13260
-6696
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@babel/preset-env",
55
{
66
"targets": {
7-
"node": "6"
7+
"node": "current"
88
}
99
}
1010
]

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
*.md
2-
/lib/**
2+
lib

.eslintrc

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
"parser": "babel-eslint",
77
"extends": "airbnb-base",
88
"rules": {
9-
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
9+
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
1010
"no-param-reassign": "off",
1111
"object-curly-spacing": ["error", "never"]
12-
}
12+
},
13+
"overrides": [
14+
{
15+
"files": ["**/*.spec.*"],
16+
"env": {
17+
"jest": true
18+
}
19+
}
20+
]
1321
}

.travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: node_js
22

33
node_js:
4-
- "11"
5-
- "10"
6-
- "9"
7-
- "8"
4+
- "16"
5+
- "15"
6+
- "14"
87

98
cache:
109
directories:

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## [2.0.0] - 2022-11-23 ([#84](https://github.com/vkalinichev/postcss-rtl/pull/84))
4+
- Aligned with postcss plugin API
5+
- Updated dependecies
6+
- Added support for aliases
7+
### Breaking changes:
8+
- Updated postcss to version 8
9+
- Stopped support for node versions below 14
10+
311
## [1.7.0] - 2020-02-19
412
- Supported `blacklist` and `whitelist` options
513

README.md

+9-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
# PostCSS-RTL
22

3-
---
4-
5-
## ⚠️ Unmaintained ⚠️
6-
7-
The project is no longer maintained by the author.
8-
9-
It still may be helpful for MVP or small projects but for large projects it will be better
10-
to choose [`rtl.css`](https://github.com/MohammadYounes/rtlcss) (which this plugins uses under the hood) directly.
11-
12-
If you want to take care of this repo/npm package, you can contact author:
13-
- telegram: https://t.me/vkalinichev
14-
- mail: me@vkalinichev.com
15-
- or [create issue](https://github.com/vkalinichev/postcss-rtl/issues/new) in this repo
16-
17-
---
183
[![npm][npm-img]][npm]
194
[![Build Status][ci-img]][ci]
205
[![npm][npm-dwnlds-img]][npm]
@@ -200,7 +185,7 @@ To transform declaration values use value directives:
200185

201186
To transform declaration property name use property directives:
202187

203-
* `/* rtl:as:{prop} */` - to process the property as {prop}. Usable for custom properties
188+
* `/* rtl:as:{prop} */` - to process the property as {prop}. Usable for custom properties (uses [rtlcss aliases][aliases documentation] under the hood)
204189

205190
**Source**
206191

@@ -341,6 +326,13 @@ gulp.src( 'style.css' )
341326
```js
342327
['margin', 'border-color']
343328
```
329+
* `aliases`: check rtlcss [aliases documentation][aliases documentation]
330+
Example:
331+
```js
332+
{
333+
`--spacing`: 'padding'
334+
}
335+
```
344336
## Thanks
345337
Great thanks to projects:
346338
* [PostCSS][PostCSS]
@@ -349,3 +341,4 @@ Great thanks to projects:
349341
[PostCSS]: https://github.com/postcss/postcss
350342
[RTLCSS]: https://github.com/MohammadYounes/rtlcss
351343
[rtlcss-directives]: http://rtlcss.com/learn/getting-started/why-rtlcss/#processing-directives
344+
[aliases documentation]: https://rtlcss.com/learn/usage-guide/aliases/

0 commit comments

Comments
 (0)