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

★ Convergence with PostCSS (make cssnext a preset, a la Babel 6.0) #208

Closed
1 of 3 tasks
MoOx opened this issue Sep 1, 2015 · 50 comments
Closed
1 of 3 tasks

★ Convergence with PostCSS (make cssnext a preset, a la Babel 6.0) #208

MoOx opened this issue Sep 1, 2015 · 50 comments

Comments

@MoOx
Copy link
Owner

MoOx commented Sep 1, 2015

Following the move of Babel 6.0, we should thinking to:

@awayken
Copy link

awayken commented Sep 3, 2015

😢 Reading this makes me sad, but as long as there is a neat and (fairly) easy way to convert existing cssnext sites to whatever is next for the project, then I'm up for it.

@awayken
Copy link

awayken commented Sep 3, 2015

As a preset, would cssnext become something like postcss-cssnext?

@MoOx
Copy link
Owner Author

MoOx commented Sep 3, 2015

Be reassured, I won't kill the baby. Whatever solution is choosen, this will be easy to do for everyone, with a clear CHANGELOG on what to do.
I can see 2 things indeed:

  • create postcss-cssnext and encourage the usage
  • maybe keep "cssnext" package for a while that is basically what cssnext is today, probably with some changes under the hood, but not for end user.

That said, I think the most important thing will be to kill cssnext wrappers (gulp, grunt etc) and encourage postcss wrapper with the use of postcss-cssnext. It's not nice to have to maintain 2 similar things.
.postcssrc is required before any transition is planned, to help people having an easy transition without any pain.

@MoOx
Copy link
Owner Author

MoOx commented Sep 3, 2015

In short, you should be happy that we will work on something better for everyone ;)

@awayken
Copy link

awayken commented Sep 3, 2015

That's good to hear. I still really love the ideas behind cssnext, so I'm glad there are the beginnings of a plan.

@magsout
Copy link
Contributor

magsout commented Sep 8, 2015

I think the idea of babel is interesting. It remains modular, eco-system is consistent and everything goes in the right direction. I like the idea. 👍

@magsout
Copy link
Contributor

magsout commented Sep 8, 2015

Just a question. cssnext is not just a wrapper module, there is still a sense. How all this can be found in this version of postcss-cssnext?

@MoOx
Copy link
Owner Author

MoOx commented Sep 8, 2015

Something like postcss-cssnext will just be a bundle of cssnext "features" (no options). Some details about my idea here #202 (comment)
I hope the other things that cssnext brings (easy interface, cli etc) will be backported to postcss, that the idea behind this issue. But I guess nobody is excited about it...

@magsout
Copy link
Contributor

magsout commented Sep 8, 2015

But I guess nobody is excited about it...

Maybe because this idea is more philosophical. Currently cssnext works very well and make a awesome job. It is easy to install (npm) and to use (webpack, grunt, gulp). The subtlety of what you want to do isn't necessarily pertinante at beginning.

@MoOx
Copy link
Owner Author

MoOx commented Sep 10, 2015

postcss-cssnext is almost ready. That will help.

@codemakerlive
Copy link

Good work @MoOx, looking forward to it on npm

@ben-eb
Copy link
Contributor

ben-eb commented Sep 10, 2015

@MoOx Awesome. 👍

@ChristopherBiscardi
Copy link

+1 We are running into a situation where we have cssnext running with a few other plugins and it looks like postcss-cssnext could help make our config a bit neater.

FWIW, the cssnext CLI has helped when debugging in the past, but it doesn't seem like a necessity.

.postcssrc is interesting, because it could mean configuring css for a static site generator much like babel is configured, without the generator being opinionated beyond "processed with postcss".

@MoOx MoOx mentioned this issue Sep 16, 2015
@MoOx
Copy link
Owner Author

MoOx commented Sep 16, 2015

I plan to deprecate (and not update to cssnext v2) all runners:

  • cssnext-loader > postcss-loader + postcss-cssnext
  • gulp-cssnext > gulp-postcss + postcss-cssnext
  • grunt-cssnext > grunt-postcss+ postcss-cssnext
  • fly-cssnext > fly-postcss + postcss-cssnext
  • cssnextify > browserify-postcss + postcss-cssnext
  • duo-cssnext > duo-postcss + postcss-cssnext
  • cssnext-brunch > postcss-brunch + postcss-cssnext
  • broccoli-cssnext > broccoli-postcss + postcss-cssnext
  • cssnext-connect > postcss-middleware + postcss-cssnext

We should

  • deprecate those packages on npm with a message + link on how to migrate with ease (I will try to offer a nice changelog so people might understand why to migrate to postcss-cssnext)
  • move deprecated repos back to their owner or to postcss org ? (poke @ai)
  • move cssnext to postcss org and delete the cssnext org ?

Not sure if it's necessary if the things about the org is necessary, but I found it would be stupid to keep a useless org, merging with postcss seems a better idea.

poke @ai and @cssnext/owners: sounds good to you? Any objection/comment ?
I would like to get a response from each runner owner please :)

@ai
Copy link

ai commented Sep 16, 2015

I move depreacted repos to my account to clean org https://github.com/ai/autoprefixer-core

@ai
Copy link

ai commented Sep 16, 2015

I think cssnext org is great for cssnext plugins

@MoOx
Copy link
Owner Author

MoOx commented Sep 16, 2015

There is not such thing as cssnext plugin and I plan to deprecate runners, so the org will be empty (just one repo)

@lionelB
Copy link
Contributor

lionelB commented Sep 16, 2015

Sounds good to me.
+1 for readme update to ensure a smooth transition

@magsout
Copy link
Contributor

magsout commented Sep 16, 2015

SGTM go 👍

@ai
Copy link

ai commented Sep 16, 2015

@MoOx in this case we can remove org :)

@shinnn
Copy link
Contributor

shinnn commented Sep 16, 2015

Nice design 👍

@watilde
Copy link

watilde commented Sep 16, 2015

Yeah sounds good to me too!
+1

@MoOx
Copy link
Owner Author

MoOx commented Sep 16, 2015

I will wait for each runner owners to say "yes, I am ok, let's do this".

@MoOx
Copy link
Owner Author

MoOx commented Oct 3, 2015

Yep. Just check the differences in postcss-cssnext readme.

@felixfbecker
Copy link

I just want cssNext to be to Sass/Less/Stylus what babel is to CoffeeScript/TypeScript/...

@MoOx
Copy link
Owner Author

MoOx commented Oct 15, 2015

@felixbecker this issue has been raised because babel (in 6.0) is becoming an engine like postcss that will do nothing by default (no transformation if no plugins added). If we want to follow babel footstep we should make cssnext a postcss preset (like babel-preset-es2015). That's why I mentionned a possible chane for the name. I still want mire input from cssnext users about that.

@felixfbecker
Copy link

Imo you must keep the name cssnext. Babel may be switching to a module approach, but they keep the name and everyone knows it stands for using next ES's features. CssNext has this association too. PostCSS doesnt.

@MoOx
Copy link
Owner Author

MoOx commented Oct 15, 2015

No that my point. Babel won't focus on ES future in it's core. That's a fact (just look at babel development branch atm).
That's why I am not sure how to adapt cssnext to be "just a preset" to enable the future of css and promote postcss as a main tool (in order to avoid duplicate effort for gulp/grunt/whatever runners/cli etc...).

@MoOx
Copy link
Owner Author

MoOx commented Dec 29, 2015

FYI, work is in progress to make official the deprecation of cssnext in favor of postcss-cssnext.
In order to keep the cssnext history/issues, I am merging back postcss-cssnext work in this repo, will delete postcss-cssnext repo and rename cssnext repo to postcss-cssnext.
The website will be update accordingly to this major change and provide a page with information on how to easily upgrade (and why). When this will be ready, I will close this issue in favor of postcss/postcss#477

@MoOx
Copy link
Owner Author

MoOx commented Dec 29, 2015

After that all cssnext runners and interface will be deprecated on npm with a link in the deprecation message to point to the related (incoming) doc.

@MoOx
Copy link
Owner Author

MoOx commented Jan 3, 2016

Subscribers => #230 (comment)

@MoOx
Copy link
Owner Author

MoOx commented Jan 4, 2016

Currently deprecating all runners I can and giving repo back to their owners.

@MoOx
Copy link
Owner Author

MoOx commented Jan 4, 2016

I can successfully deprecate the following:

  • cssnext
  • cssnext-loader
  • gulp-cssnext
  • grunt-cssnext
  • duo-cssnext
  • cssnext-brunch
  • cssnext-connect
  • broccoli-cssnext

But I wasn't able for this packages

  • fly-cssnext
  • gobble-cssnext
  • cssnextify

@bucaran or @DrKraken, please run this command npm deprecate fly-cssnext "cssnext is now postcss-cssnext. fly-cssnext is deprecated. Use fly-postcss instead. See postcss-cssnext migration guide http://cssnext.io/postcss/"

@Swatinem, please run this command npm deprecate gobble-cssnext "cssnext is now postcss-cssnext. gobble-cssnext is deprecated. Use gobble-postcss instead. See postcss-cssnext migration guide http://cssnext.io/postcss/"

@ByteMuse, please run this command npm deprecate cssnextify "cssnext is now postcss-cssnext. cssnextify is deprecated. Use browserify-postcss instead. See postcss-cssnext migration guide http://cssnext.io/postcss/"

@MoOx
Copy link
Owner Author

MoOx commented Jan 4, 2016

I make transfert request to all original creators of the packages. Tell if I made something wrong.

@MoOx MoOx closed this as completed Jan 4, 2016
@ghost
Copy link

ghost commented Jan 4, 2016

Hi @MoOx

The amount of information is massive, do you have a FAQ or link to see a summary of what happened?

Thanks!

@MoOx
Copy link
Owner Author

MoOx commented Jan 4, 2016

It's very simple: http://cssnext.io/postcss/

@ghost
Copy link

ghost commented Jan 4, 2016

Thanks, the JavaScript scene is so exciting 😆

@MoOx
Copy link
Owner Author

MoOx commented Jan 4, 2016

It's alive.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests