Closed cybear closed 9 years ago
This looks good to me; would love to have some thoughts form @LaurentGoderre @alpadev.
Looks good but I wonder if you could extract the class to a separate file and import it with require()
That sounds fair. It could possibly be useful for other modules if they had a similar rewrite. If I do that, will that be enough for the pull request to go through?
I,.m trying to figure out while the build fail but when it passes sure
Oh, could you write tests for the new class? I think tests are also useful for other developers to see how a class like this works
For the builds it seems like we have some quite old versions of various dependencies. I can bump the dependencies - but I can't promise that I will be able to test that everything still works though. What do you think is a good solution?
OK will add unit tests to my todo list.
Ok, try to bump the dependencies but could you do it in a separate PR?
Any news on this?
Sorry, I didn't find any time in my vacation to do this. My spare time is limited but I hope to start looking into it soon.
On Sat, Jun 28, 2014 at 5:27 PM, Sebastian Golasch <notifications@github.com
wrote:
Any news on this?
— Reply to this email directly or view it on GitHub https://github.com/asciidisco/grunt-imagine/pull/56#issuecomment-47430232 .
Björn Söderqvist http://copenhagenjs.dk http://modl.se http://demodag.org
No worries. I know that feeling. Take your time :)
@cybear Forgotten about this? (So did I ;) ). Any news?
Oops! Yes I have. Unfortunately I'm not using Grunt anymore at work and I don't think I will find any time to tamper with this in my spare time.
Utilize an object FileMeta to contain everything needed for each file.
It keeps the original path and supplies helper functions to do everything necessary with each file.
Use functional style to filter the file list
filterOnlyImage
Filter out fonts as well as CSS filesfilterOnlyExists
Filter out files that don’t existfilterOnlySmall
Filter away large files if IE8 mode activatedOther fixes
fs.exists
instead of opening and usingtry…catch