Skip to content
This repository has been archived by the owner on May 20, 2018. It is now read-only.

LESS improvements #22

Merged
merged 4 commits into from
May 23, 2012
Merged

LESS improvements #22

merged 4 commits into from
May 23, 2012

Conversation

tkazec
Copy link
Contributor

@tkazec tkazec commented May 23, 2012

Fix for #21. Uses the included async library to make things play nicely with each other. Comes with tests.

Some notes:

  • Took an annoying amount of hours because apparently .parse() doesn't play nicely when called in parallel. Switched it to use async.forEachSeries() instead of async.forEach() and everything worked fine...
  • There's a couple "cleanup" commits. They don't change much, I just made them along the way to help make debugging the above issue easier..but they're still beneficial enough to include.
  • On a related note... Normally I don't mind, but in this case the code style really got in the way, especially the indentation and newlines. Just though I'd mention.
  • And finally, took me a loong time to just figure out how to debug. Ended up forcing the main gruntfile to always print the stdout. Kinda weird and annoying :/

Enjoy!
/bedtime

Both were only used once and could cause collisions. `log` was being set to global.
 - Fix the style of a couple things.
 - Use grunt.fail.warn to prevent ambiguity.
 - Remove some stuff from the end of the task because they made no sense and were essentially useless.
IMPORTANT NOTE: Apparently, .parse() doesn't play nice when called more than once at a time. Therefore, async.forEachSeries() is REQUIRED instead of async.forEach(). This took far too long to realize :(
@ctalkington
Copy link
Member

commit looks nice. ill have to try it out and update my recess implementation to a more async design and share it ;)

@tkellen
Copy link
Member

tkellen commented May 23, 2012

Great commit Teddy--thanks very much for the submission! Some of the cruft you removed is left-over from rewrites that were required to support grunts rapidly changing API early on. It probably wouldn't hurt to do something similar on the rest of the tasks (remove the log/file vars, etc). If you feel like it, go for it! If not, I'll get to it eventually.

tkellen pushed a commit that referenced this pull request May 23, 2012
@tkellen tkellen merged commit 3ff8e43 into gruntjs:master May 23, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants