SE7ENSKY / group-css-media-queries

CSS postprocessing: group media queries. Useful for postprocessing preprocessed CSS files.
MIT License
100 stars 19 forks source link

Is there something similar for Javascript? #6

Closed bserem closed 8 years ago

bserem commented 9 years ago

I love this gulp plugin. It allows me to seperate my sass files the way I want (smacss) and the result is simply working.

I'm looking for something similar for Javascript files. I want to split all my js files smacss way, but in the end I'll have countless of $(document).ready lines in the final js file. Does anybody now of somthing similar to this plugin but for javascript?

Thanks in advance and sorry for hijacking the issue queue :$

ivankravchenko commented 8 years ago

@bserem, you have so nice suggestion! I can't find ready-to-use solution. It is pretty easy to write but nearly impossible to guarantee full bulletproof-ness of results. In general, input code must be a valid JavaScript. If you need one, I can allocate some time writing it. Of course, I would be happy to see your contributions.

bserem commented 8 years ago

@ivankravchenko thanks for replying. Please don't spend time on it, I was just wondering if there was something out there that you knew about.

I am not confident with creating my own gulp automations, but given there is time from work I'm gonna invest some time on it.

Thanks again ;)