Skip to content
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

Auto-Reload debug using electronmon #1140

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Atomic-Germ
Copy link
Contributor

@Atomic-Germ Atomic-Germ commented Feb 5, 2025

Context / Background

While I was doing some front-end experiments, I realized it would be nice if it would just reload itself whenever I save a file. This is my solution to that.

What change is being introduced by this PR?

  • How did you approach this problem?
    I basically just looked at what others before me have done.

  • What changes did you make to achieve the goal?
    Install one devDependency, and alter a script in package.json

  • What are the indirect and direct consequences of the change?
    When editing files, the app will reload when a front-end file is changed.

How will this be tested?

  • How will you verify whether your changes worked as expected once merged?
    Running a debug session and noting that it reloads after a small change to a css or other file.

Switching to electronmon for much better performance

@tupaschoal
Copy link
Collaborator

Interesting, we used to have something in place, which was electron-reloader, but we recently broke it and had #1137 tracking it.

Do you know how one compares to the other, in terms of pros/cons?

@Atomic-Germ
Copy link
Contributor Author

Atomic-Germ commented Feb 5, 2025

Well, it reloads a little ungracefully if you’re trying to use the electron dev tools while debugging. BUT, it’s a lot faster, and it’s a lot better than restarting it yourself.

@Atomic-Germ Atomic-Germ changed the title Add support for auto-reloading in frontend debugging through nodemon … Auto-Reload debug using !nodemon — change to electronmon Feb 6, 2025
@Atomic-Germ Atomic-Germ changed the title Auto-Reload debug using !nodemon — change to electronmon Auto-Reload debug using electronmon Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants