I have an Electron application that needs to save some data when it’s closed by the user (e.g. just after the user clicked on the “Close” button). For this example, we want to store the resolution (width and height of the application in pixels) to a config file. The next
Continue readingTag: Electron
Write Automated Tests for Electron with Spectron, Mocha, and Chai
In this article, you will learn how to test your Electron-based desktop application with Mocha, Chai, and Spectron. You will learn how to set up the test environment and run automated integration or E2E tests with Spectron, Mocha, and Chai. Furthermore, a short introduction to CSS selectors is given.
Continue readingHow to include Node modules with Webpack
Webpack is a really convenient tool to bundle your application. However, its configuration can be problematic. Here is a solution to a common problem on how to correctly include Node.js modules, such as fs and path in your application.
Continue readingCross-Platform Apps mit Electron in HTML, CSS und JavaScript
In diesem Beitrag möchte ich euch einen Einstieg in die Entwicklung von Cross-Platform Apps mit Electron in HTML, CSS und JavaScript geben. Mit Electron könnt ihr Anwendungen für macOS, Windows und Linux erstellen.
Continue reading