A prebuilt project to help kickstart the creation of desktop apps using Electron, React, Vite & Typescript.
This boilerplate does not include a design system or component library. The goal is to keep this project as barebones as possible.
- 🌟 Electron
- 🔱 Vite
- 🌀 TypeScript
- ⚛️ React
- 🧹 ESLint + Prettier
- 📦 Electron Forge
git clone https://github.com/jmcgavin/electron-vite-react-templateInstall dependencies:
# pnpm
pnpm install
# or yarn
yarn install
# or npm
npm installTo develop and run your application, run following command:
pnpm startTo lint the source code using ESLint, run the following command:
pnpm lintTo fix all auto-fixable linting issues, run the following command:
pnpm lint:fixTo check the source code for formatting issues using Prettier, run the following command:
pnpm formatTo fix all auto-fixable formatting issues, run the following command:
pnpm format:fixTo fix all auto-fixable linting and formatting issues, run the following command:
pnpm fix:allUse Electrong Forge to package and distibute your application.
Customize and package your Electron app with OS-specific bundles (.app, .exe etc)
pnpm packageMaking is a way of taking your packaged application and making platform specific distributables like DMG, EXE, Flatpak files, etc.
pnpm makePublishing is a way of taking the artifacts generated by the make command and sending them to a service somewhere for you to distribute or use as updates. (This could be your update server or an S3 bucket)
pnpm publishProvides an easy way of configuring your packaged application and making platform specific distributables like DMG, EXE, or Flatpak files.
The configuration file is available here:
forge.config.jsFor further information visit Electron Forge Configuration.
