Skip to content

Commit 853be72

Browse files
modoscMadLittleMods
authored andcommittedAug 8, 2017
Fix PostCSS deprecation, update deps
Fix #50
1 parent e069e6a commit 853be72

File tree

5 files changed

+13
-14
lines changed

5 files changed

+13
-14
lines changed
 

‎.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ test/
88

99
playground/
1010
todo.md
11-
gulpfile.js
11+
gulpfile.js

‎.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

‎.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "iojs"
54
- "stable"
65
- "4.2"
7-
- "0.12"

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
104104
prop: variableName,
105105
value: variableValue
106106
});
107-
varDecl.moveTo(variableRootRule);
107+
variableRootRule.append(varDecl);
108108

109109
// Add the entry to the map
110110
prevVariableMap[variableName] = (prevVariableMap[variableName] || []).concat({
@@ -151,7 +151,7 @@ module.exports = postcss.plugin('postcss-css-variables', function(options) {
151151
splitOutRule.parent = decl.parent.parent;
152152

153153
var declClone = decl.clone();
154-
declClone.moveTo(splitOutRule);
154+
splitOutRule.append(declClone);
155155

156156
var prop = decl.prop;
157157
map[prop] = (map[prop] || []).concat({

‎package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
},
1616
"dependencies": {
1717
"escape-string-regexp": "^1.0.3",
18-
"extend": "^2.0.1",
19-
"postcss": "^5.0.5"
18+
"extend": "^3.0.1",
19+
"postcss": "^6.0.8"
2020
},
2121
"devDependencies": {
22-
"bluebird": "^2.9.26",
23-
"chai": "^2.3.0",
24-
"chai-as-promised": "^5.0.0",
25-
"clean-css": "^3.2.10",
22+
"bluebird": "^3.5.0",
23+
"chai": "^4.1.1",
24+
"chai-as-promised": "^7.1.1",
25+
"clean-css": "^4.1.7",
2626
"gulp": "^3.8.11",
27-
"gulp-eslint": "^0.12.0",
28-
"gulp-mocha": "^2.1.0",
29-
"mocha": "^2.2.5"
27+
"gulp-eslint": "^4.0.0",
28+
"gulp-mocha": "^4.3.1",
29+
"mocha": "^3.5.0"
3030
},
3131
"scripts": {
3232
"test": "gulp"

0 commit comments

Comments
 (0)