-
Notifications
You must be signed in to change notification settings - Fork 458
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostCSS support #415
Comments
We just dicussed it yesterday. the current problem: PostCSS 5.0 has only CSS and SCSS parsers. In next month I have no plan to start Sass, Less and Stylus parsers. ut I will write good docs about writing a parsers ;). |
I’m interesting in CSScomb ❤️ PostCSS. The file I have (I use postcss-nested): .header
{
color: #fff;
background-color: $darkGray;
.wrapper {
display: flex;
flex-direction: column;
@media (--tablet)
{
flex-direction: row;
}
}
} and the error I get at csscombing:
|
@isqua if you use CSSComb in text editor, you can set syntax to SCSS and CSSComb will work with code you provide. |
@hudochenkov, I use it from console, and I want to lint files too. I can rename all |
To use CSSComb right now in Sublime Text we need to use |
@hudochenkov, I believe this is actually what @isqua has implemented: map one syntax to another. |
@tonyganch As I know @isqua added this for CSSComb 4. If you will be able to add this in current version of Sublime Text plugin it would be great :) Thank you for quick reply :) |
Hi, do you know when will be released CSSComb 4? |
@hudochenkov, I can't, I've created a total dependency mess there ¯_(ツ)_/¯ // cc @senechaux |
@hudochenkov, btw I'm looking for any help with this project or maybe even a new maintainer. If it sounds kinda interesting to you or you know a guy who knows a guy who is a good match, let me know :) |
@tonyganch that's great! Can't wait :) Sadly I don't know JS enough to support this huge project. We can ask in community accounts @jsunderhood and @cssunderhood at Twitter. |
@hudochenkov, I'm trying to search among familiar faces first :) |
@ai Doesn't postcss-sorting effectively replace CSScomb? |
@danielbayley I think it could replace CSScomb. But CSScomb team don’t want to merge. |
@danielbayley postcss-sorting effectively replace only CSSComb's |
I have used postcss-sorting as visual studio code plugin with postcss-nested syntax successfuly |
It doesn't seem far off http://postcss.parts/?searchTerm=sass. Besides, SugarSS basically replaces that anyway. I suppose the equivalent of CSScomb's functionality would be a series of PostCSS plugins, with sorting being just one… |
@danielbayley yeap, code style features already can be implemented by stylelint and stylefmt. |
PostCSS now is a big player at CSS processors market. More and more peoples start using it, and, I sure, many of them wants to use CSScomb with it. In many cases CSScomb in SCSS mode can process CSS with PostCSS plugins syntax, but sometimes it's fails and can't parse file.
PostCSS and CSScomb both going to their big releases. PostCSS 5.0 will support custom parsers. CSScomb 4.0, as I know, is heavy refactored. Maybe it's time to drop Gonzales PE and use PostCSS parsers for CSScomb?
PostCSS syntax can be very different because of used plugins and developers wants to have their source files organized.
This is example of PostCSS code, that current CSScomb (in Sublime Text) fails to process:
Fails because of
@
incalc()
. Used PostCSS plugins: postcss-property-lookup and postcss-calc.More PostCSS-plugins syntaxes. Mixins are different from SCSS, for example, and there in no way to sort them now like we did it recently in this PR:
Following code taken from cssnext:
What you think about it, @tonyganch and @ai?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: