-
Notifications
You must be signed in to change notification settings - Fork 25
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
Make calls to phantomjs sequential. #156
Conversation
Hey @vinvol, thanks for doing so - but I don't think it's working. :( Just had a quick look and got:
Reason for that is - that the Additionally the test suite is doing something weird
But thanks for doing that and I'm happy to support you if help is needed. :) Personally I'd stick with the array of promises and Quick tip: For development you can always run |
Hey @stefanjudis, my fork was a little bit behind, sorry about that :/ The tests should pass now :p |
Cool cool cool! 👍 May i ask for one more thing? 😊 Can you stick to coding style of the project? It's basically writter with much more spaces everywhere. :D https://github.com/stefanjudis/grunt-phantomas/blob/master/CONTRIBUTING.md |
No problem ;) |
.catch( function( e ) { | ||
console.log( e ); | ||
} ); | ||
Promise.reduce( runs, function( total, run, index ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey hey,
maybe I'm wrong, but an each
would do the same trick or?
There is actually no reduction.
Hmm, I played around with it a bit and liked the approach. Unfortunately there is one downside with this. From the
Current behavior is, that if any With this approach this is not working anymore, or? Because one failing Please correct me when I'm wrong. |
You were perfectly right! I replaced the reduce by an 😝 |
Nice - on first look this looks great! Will have a more detailed look on the weekend. Thanks for doing it. |
Make calls to phantomjs sequential.
Congrats and thanks so much! Great job! |
Hey !
I wrote some changes to make multiple calls to phantomjs sequential.
I'm not sure it's the right approach since I reuse the promise object received from phantomjs but I thought it's worth a shot.
Fixes:
#147