Starter template for fast and efficient Electron development using Vite and TypeScript
Find a file
Martin Burchard a8fb48fb1b
Merge pull request #6 from MBurchard/feature/logging-continued
log Electron main and renderer logging into separate log files
2025-02-03 17:52:12 +01:00
documentation/img add source map support 2025-01-24 22:52:05 +01:00
modules debug log path 2025-02-03 17:50:12 +01:00
types move to types and rename 2025-01-21 13:32:37 +01:00
.editorconfig A first Vite based Electron Project 2025-01-14 00:04:32 +01:00
.gitignore integrate electron-builder 2025-01-17 23:49:29 +01:00
.npmrc integrate electron-builder 2025-01-17 23:49:29 +01:00
electron-builder.config.js add basic electron-builder config 2025-01-21 13:32:17 +01:00
eslint.config.js A first Vite based Electron Project 2025-01-14 00:04:32 +01:00
License A first Vite based Electron Project 2025-01-14 00:04:32 +01:00
package.json chore: Update Dependencies 2025-02-03 16:54:53 +01:00
pnpm-lock.yaml chore: Update Dependencies 2025-02-03 16:54:53 +01:00
project.config.ts change location of env.d.ts 2025-01-21 13:36:03 +01:00
README.md add source map support 2025-01-24 22:52:05 +01:00
tsconfig.app.json move CSS 2025-02-03 16:57:19 +01:00
tsconfig.json A first Vite based Electron Project 2025-01-14 00:04:32 +01:00
tsconfig.node.json add a folder to the common module that allows usage of the global window 2025-02-03 16:59:26 +01:00
tsconfig.vitest.json A first Vite based Electron Project 2025-01-14 00:04:32 +01:00
vite.config.ts lint 2025-02-03 16:58:46 +01:00

vite-electron-starter

lang: Typescript GitHub License

the app running

Introduction

This starter template provides a quick and easy way to build Electron apps with TypeScript. It supports Hot Module Replacement (HMR) for the Electron main process, the preload script, and the app itself. The entire setup uses Vite in a clear, transparent manner, no hidden “black magic” in third-party plugins.

Features

Logging

Since logging is essential for many developers, this project offers a ready-to-use and production-ready logging solution of my own: bit-log

Console logging

File logging

It also has source map support, so it shows the correct error position from the original TypeScript code:

File logging