-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Gulp error handler in browser thingy #365
Comments
I actually just made #366 as I am very interesting in helping move Gulp forward. I will start looking into it immediately and report my progress here. |
@distracteddev Anything that allows you to put arbitrary CSS/HTML on a page would be all that's needed on the browser end. The node library would just take an arbitrary Error object, form up the CSS/HTML, and shoot it over to the extension. |
DevTools extension? |
Do you guys think hooking up to |
Not sure how to exactly approach this. Originally I was thinking I would just write a small Chrome Extension but then we would be alienating FF users. Therefore I was looking into http://crossrider.com/ |
@distracteddev Just do a chrome extension first and somebody who uses FF can add one later? @sindresorhus Do you have any docs that would help for doing this as a devtools extension vs. a chrome extension? |
http://developer.chrome.com/extensions/devtools There's a DevTools extension for grunt: https://github.com/vladikoff/grunt-devtools |
Anyone interested in developing this? |
I might take a crack at it. I developed something similiar for backend log errors on an enterprise ecomm platform using sockets and chrome notifications. |
@tomasdev I like you're idea :) |
@contra what would be the requirements/acceptance criteria? |
@tomasdev Text from process.stderr somehow ends up in the browser and looks nice. You could listen to |
@contra any kind of implementation? I've seen sass doing the body:after trick to show up the errors. Did we decide if it's gonna be an extension? Seems like @kenwheeler is already into something. 😃 |
@tomasev I think an extension makes the most sense, not everyone is using livereload. Implementation could follow what grunt-devtools (linked above) did for reference |
Hmm wait a second https://github.com/niki4810/gulp-devtools @niki4810 is this functioning? |
@contra Yes, are you hitting any issues ? |
@niki4810 When an error happens in a task does it display a pop-up or only if you have the console open? How hard would it be to add a popup to the page with the error? |
I don't agree with altering the page. Also, (as far as I am aware) devtools addons don't have access to the page contents. Beefy does this by serving up an error page with the stack trace if an error occurs in the bundler. |
@contra right now it just logs the error to console, but adding one should take much time based on what gets decided here :) |
If by popup you mean alert I don't think so its a good idea either, because it bring focus to window. |
@danielhusar No I don't mean an alert |
@contra HTML5 Push Notification would be cool IMO. Though I would prefer it as a option. |
@contra, what about using something like gulp-notify? |
Going to close this, as there are a few user-land tools people can use |
After the new task system comes out, it would be cool to have a chrome extension (or use devtools somehow) that shows errors from gulp in the browser so you don't have to keep switching back and forth between the terminal and your app.
Suggested by @distracteddev
This would be in its own repo, just putting it here for brainstorming purposes
The text was updated successfully, but these errors were encountered: