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
execute tasks on over "mainWindow.reload()" #22
Comments
Could be a pretty neat browserify transform or plugin! Would be useful outside of hihat as well. Just prints lint errors to console in the same way that error handling currently re-writes the bundle. |
Interesting to make it a plugin. How would the linter push the results to the console? |
Hmm, for example running I'm open to other ideas, though. If there was a "pre-run" task like a child process, how would it send errors and details to the DevTools console? Maybe just using |
Well, I suppose since Electron is on unified event loop, spawning a child task and checking its exit code shouldn't be overwhelmingly complicated. Maybe before calling I guess the question to give it context is in which environment do the tasks get executed, the |
I made a prototype using
It probably wouldn't be much harder to do the same with The child task idea is pretty cool, too. It might be useful for various things other than linting. It could just pipe the process' stdout (or stderr?) into the DevTools console. |
Running a linter before every test run is a practice that's become a habit for me. Would there be an easy way to include a way to execute given tasks before the main window reloads?
The text was updated successfully, but these errors were encountered: