Skip to content

Commit 9e13d64

Browse files
authored
Merge pull request #5 from jonathantneal/feature/postcss6
Update to PostCSS 6 + many improvements
2 parents 0d9da80 + 6a9388e commit 9e13d64

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

.npmignore

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

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
language: node_js
22
node_js:
3-
- "5"
4-
- "4"
5-
- "0.12"
3+
- 4.5

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
## 2.0
2+
* Use PostCSS 6x
3+
* Use Node 4x syntax
4+
15
## 1.0
26
* Initial release

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var postcss = require('postcss');
1+
const postcss = require('postcss');
22

3-
module.exports = postcss.plugin('postcss-replace-overflow-wrap', function (opts) {
3+
module.exports = postcss.plugin('postcss-replace-overflow-wrap', (opts) => {
44
opts = opts || {};
5-
var method = opts.method || 'replace';
5+
const method = opts.method || 'replace';
66

7-
return function (css, result) { // eslint-disable-line no-unused-vars
8-
css.walkDecls('overflow-wrap', function (decl, i) { // eslint-disable-line no-unused-vars
7+
return (css) => {
8+
css.walkDecls('overflow-wrap', (decl) => {
99
decl.cloneBefore({ prop: 'word-wrap' });
1010
if (method === 'replace') {
1111
decl.remove();

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-replace-overflow-wrap",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.",
55
"keywords": [
66
"postcss",
@@ -16,13 +16,16 @@
1616
"url": "https://github.com/MattDiMu/postcss-replace-overflow-wrap/issues"
1717
},
1818
"homepage": "https://github.com/MattDiMu/postcss-replace-overflow-wrap",
19+
"files": [
20+
"index.js"
21+
],
1922
"dependencies": {
20-
"postcss": "^5.0.16"
23+
"postcss": "^6.0.1"
2124
},
2225
"devDependencies": {
23-
"ava": "^0.14.0",
24-
"eslint": "^2.1.0",
25-
"eslint-config-postcss": "^2.0.0"
26+
"ava": "^0.19.1",
27+
"eslint": "^3.19.0",
28+
"eslint-config-postcss": "^2.0.2"
2629
},
2730
"scripts": {
2831
"test": "ava && eslint *.js"

0 commit comments

Comments
 (0)