Awesome
Electron + React + Rspack
An Electron boilerplate including TypeScript, React, Rspack and ESLint.
Reference electron-react-boilerplate
Installation
Use pnpm in order to install all dependencies.
pnpm install
Usage
# use `pnpm start:renderer` to start renderer process.
pnpm start:renderer
# and use `pnpm start:main` to start main process.
pnpm start:main
Packaging
To generate the project package based on the OS you're running on, just run:
pnpm package
Features
- Electron: update to v31.0.2
- Typescript
- RSPack: for electron product (preload and main).
- RSBuild: for web product.
- Electron-Store: local persistent storage.
- Electron-Log: local logger.
- Electron-Builder: have to keep using v24.9.1.
- Electron-Updater: auto update app version.
- ESLint
- Less
- Arco-Design: a comprehensive React UI components library.
- Theme: light/dark mode.
- CI/CD: auto build and release when push tag.