Elemon

screenshot of Elemon

live-reload Electron application during development

Overview

Elemon is a simplistic yet powerful module designed for developers creating Electron applications. It aims to streamline the live-reload process during development, providing a seamless experience by automatically reloading the app or specific browser windows on file changes. With just a few lines of code, Elemon makes it incredibly easy to watch your application files and refresh them without the hassle of manually restarting or reloading them.

Using the Electron API, Elemon simplifies the setup of a clean live-reload tool. By passing in the main application and browser window references along with their associated file names, developers can achieve efficient live-reloading, ensuring that their workflow remains uninterrupted as they implement changes.

Features

  • Easy Integration: Simple to integrate into your Electron app with just a few lines of code, allowing you to focus on development rather than setup.
  • Automatic Reload: Automatically relaunches the main app or reloads specific browser windows when file changes are detected, enhancing efficiency.
  • Flexible File Watching: Supports watching all files in a directory or specific files, giving developers the freedom to customize their watch list.
  • Error Prevention: Can be paired with electron-is-dev to prevent undefined errors during the build process, ensuring a smoother development experience.
  • Lightweight: Being a small module, it adds minimal overhead to your project while providing maximum utility.
  • Support for Various Watchers: Compatible with different file watchers like chokidar, allowing you to choose the best fit for your development needs.
  • Documentation and Examples: Comes with clear usage instructions and examples, making it accessible for developers at all skill levels.