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

Use PostCSS 6 and update all plugins #384

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_js:
- '6'
- '5'
- '4'
- '0.12'

script:
- npm run test
Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ environment:
- nodejs_version: 6
- nodejs_version: 5
- nodejs_version: 4
- nodejs_version: 0.12

version: "{build}"
build: off
Expand Down
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,33 @@
"!**/__tests__"
],
"dependencies": {
"autoprefixer": "^6.0.2",
"caniuse-api": "^1.5.3",
"autoprefixer": "^7.1.0",
"caniuse-api": "^2.0.0",
"chalk": "^1.1.1",
"pleeease-filters": "^3.0.0",
"postcss": "^5.0.4",
"postcss-apply": "^0.3.0",
"postcss-attribute-case-insensitive": "^1.0.1",
"postcss-calc": "^5.0.0",
"postcss-color-function": "^2.0.0",
"postcss-color-gray": "^3.0.0",
"postcss-color-hex-alpha": "^2.0.0",
"pleeease-filters": "^4.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#375 ?

"postcss": "^6.0.1",
"postcss-attribute-case-insensitive": "^2.0.0",
"postcss-calc": "^6.0.0",
"postcss-color-function": "^4.0.0",
"postcss-color-gray": "^4.0.0",
"postcss-color-hex-alpha": "^3.0.0",
"postcss-color-hsl": "^1.0.5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^2.0.0

"postcss-color-hwb": "^2.0.0",
"postcss-color-rebeccapurple": "^2.0.0",
"postcss-color-hwb": "^3.0.0",
"postcss-color-rebeccapurple": "^3.0.0",
"postcss-color-rgb": "^1.1.4",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^2.0.0

"postcss-custom-media": "^5.0.0",
"postcss-custom-properties": "^5.0.0",
"postcss-custom-selectors": "^3.0.0",
"postcss-font-family-system-ui": "^1.0.1",
"postcss-font-variant": "^2.0.0",
"postcss-custom-media": "^6.0.0",
"postcss-custom-properties": "^6.0.1",
"postcss-custom-selectors": "^4.0.1",
"postcss-font-family-system-ui": "^2.0.1",
"postcss-font-variant": "^3.0.0",
"postcss-image-set-polyfill": "^0.3.3",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^0.3.5

"postcss-initial": "^1.3.1",
"postcss-media-minmax": "^2.1.0",
"postcss-nesting": "^2.0.5",
"postcss-pseudo-class-any-link": "^1.0.0",
"postcss-initial": "^2.0.0",
"postcss-media-minmax": "^3.0.0",
"postcss-nesting": "^3.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The most recent version of postcss-nesting is 4.0.1

"postcss-pseudo-class-any-link": "^4.0.0",
"postcss-replace-overflow-wrap": "^1.0.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^2.0.0

"postcss-selector-matches": "^2.0.0",
"postcss-selector-not": "^2.0.0"
"postcss-selector-matches": "^3.0.1",
"postcss-selector-not": "^3.0.1"
},
"peerDependencies": {
"caniuse-db": "^1.0.30000652"
Expand Down Expand Up @@ -95,8 +94,9 @@
"npmpub": "^3.1.0",
"object-assign": "^3.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since PostCSS 6 requires node >= 4 anyways, maybe time to get rid off that if it doesn't require to much changes 😛

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a devDep, so doesn't really need done, but it definitely could be done.

"opn": "^1.0.2",
"postcss-apply": "^0.7.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be bumbed to ^0.8.0

"postcss-browser-reporter": "^0.4.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing PostCSS v6 support

"postcss-import": "^7.1.3",
"postcss-import": "^10.0.0",
"postcss-loader": "^0.8.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump to v2.0.5 aswell ? 🙃

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^2.0.5

"postcss-reporter": "^1.3.0",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^4.0.0

"postcss-url": "^5.0.2",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PostCSS v6 support with ^7.0.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
body {
background: rgb(102, 51, 153)
background: #639
}
12 changes: 4 additions & 8 deletions src/__tests__/fixtures/features/image-set.expected.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.image {
background-image: url(img/test.png);
}@media (min-resolution: 144dpi) {.image {
background-image: url(img/test-2x.png);
}
@media (min-resolution: 144dpi) {
.image {
background-image: url(img/test-2x.png);
}
}@media (min-resolution: 600dpi) {.image {
background-image: url(my-img-print.png);
}
@media (min-resolution: 600dpi) {
.image {
background-image: url(my-img-print.png);
}
}
6 changes: 1 addition & 5 deletions src/__tests__/fixtures/regression.expected.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.button {
}

.button i {

.button i{
color: black
}
2 changes: 1 addition & 1 deletion src/__tests__/option.browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import cssnext from ".."
tape("cssnext browsers option", function(t) {

const customPropsInput = ":root{--foo:bar}baz{qux:var(--foo)}"
const customPropsOutput = "baz{qux: bar}"
const customPropsOutput = "baz{qux:bar}"

// fx 30 doesn't handle custom prop
t.equal(
Expand Down