Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 5d6fa7a

Browse files
committed
Changed: upgrade to postcss v4.x
Also, this revert fix for #58, which was stupid. Close #55
1 parent d765881 commit 5d6fa7a

File tree

8 files changed

+32
-31
lines changed

8 files changed

+32
-31
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,34 @@
2727
"index.js"
2828
],
2929
"dependencies": {
30-
"autoprefixer-core": "^4.0.0",
30+
"autoprefixer-core": "^5.0.0",
3131
"colors": "^1.0.2",
3232
"commander": "^2.3.0",
33-
"csswring": "^2.0.0",
33+
"csswring": "^3.0.0",
3434
"exit": "^0.1.2",
3535
"node-watch": "^0.3.4",
36-
"object-assign": "^1.0.0",
37-
"pleeease-filters": "^0.1.4",
38-
"postcss": "^3.0.0",
39-
"postcss-calc": "^3.0.0",
36+
"object-assign": "^2.0.0",
37+
"pleeease-filters": "^1.0.0",
38+
"postcss": "^4.0.2",
39+
"postcss-calc": "^4.0.0",
4040
"postcss-color-function": "^1.1.0",
41-
"postcss-color-gray": "^1.0.0",
41+
"postcss-color-gray": "^2.0.0",
4242
"postcss-color-hex-alpha": "^1.1.0",
4343
"postcss-color-hwb": "^1.1.0",
4444
"postcss-color-rebeccapurple": "^1.1.0",
4545
"postcss-custom-media": "^1.3.0",
46-
"postcss-custom-properties": "^2.1.0",
46+
"postcss-custom-properties": "^3.0.0",
4747
"postcss-custom-selectors": "^1.1.0",
4848
"postcss-font-variant": "^1.0.0",
49-
"postcss-import": "^4.0.0",
49+
"postcss-import": "^5.0.0",
5050
"postcss-media-minmax": "^1.1.0",
5151
"read-file-stdin": "^0.2.0",
5252
"to-slug-case": "^0.1.2",
5353
"to-space-case": "^0.1.3",
5454
"write-file-stdout": "0.0.2"
5555
},
5656
"devDependencies": {
57-
"browserify": "^6.0.3",
57+
"browserify": "^8.1.1",
5858
"jscs": "^1.6.2",
5959
"jshint": "^2.5.6",
6060
"tape": "^3.0.0",

test/cases/color.expected.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
body {
2+
background: rgb(102, 51, 153) -webkit-linear-gradient(rgba(102, 51, 153, 0.5), rgb(153, 51, 51), rgba(153, 51, 51, 0.55), rgba(153, 221, 153, 0.9));
23
background: rgb(102, 51, 153) linear-gradient(rgba(102, 51, 153, 0.5), rgb(153, 51, 51), rgba(153, 51, 51, 0.55), rgba(153, 221, 153, 0.9));
34
}

test/cases/example.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ body {
2929
/* colors stuff */
3030
a {
3131
color: var(--highlightColor);
32-
transition: color .1s, transform .2s;
33-
}
34-
a:hover {
35-
color: gray(255, 50%);
36-
transform: rotate(1deg);
32+
transition: color 1s; /* autoprefixed ! */
3733
}
34+
a:hover { color: gray(255, 50%) }
3835
a:active { color: rebeccapurple }
3936
a:visited { color: color(var(--highlightColor) blackness(+20%)) }
4037

test/cases/example.expected.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@ h6 { margin-top: 0 }
2727
/* colors stuff */
2828
a {
2929
color: rgb(89, 185, 204);
30-
transition: color .1s, -webkit-transform .2s;
31-
transition: color .1s, transform .2s;
32-
}
33-
a:hover {
34-
color: rgba(255, 255, 255, 0.5);
35-
-webkit-transform: rotate(1deg);
36-
-ms-transform: rotate(1deg);
37-
transform: rotate(1deg);
30+
-webkit-transition: color 1s;
31+
transition: color 1s; /* autoprefixed ! */
3832
}
33+
a:hover { color: rgba(255, 255, 255, 0.5) }
3934
a:active { color: rgb(102, 51, 153) }
4035
a:visited { color: rgb(89, 142, 153) }
4136

test/features/autoprefixer.expected.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
* {
2-
transition: -webkit-transform 1s;
3-
transition: transform 1s;
2+
-webkit-transition: -webkit-transform 1s;
3+
transition: transform 1s;
44
}
55

66
@-webkit-keyframes spin {
7-
0% { -webkit-transform: rotate(0deg); transform: rotate(0deg) }
8-
100% { -webkit-transform: rotate(360deg); transform: rotate(360deg) }
7+
8+
0% {
9+
-webkit-transform: rotate(0deg);
10+
transform: rotate(0deg);
11+
}
12+
13+
100% {
14+
-webkit-transform: rotate(360deg);
15+
transform: rotate(360deg);
16+
}
917
}
1018

1119
@keyframes spin {

test/sourcemap/expected-inline.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/sourcemap/expected.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/sourcemap/input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import "imported.css";
22

33
body {
4-
color: red
4+
color: red;
55
}

0 commit comments

Comments
 (0)