Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/RyanProMax/electron-react-rspack

An Electron boilerplate including TypeScript, React, Rspack and ESLint.
https://github.com/RyanProMax/electron-react-rspack

Last synced: 2 months ago
JSON representation

An Electron boilerplate including TypeScript, React, Rspack and ESLint.

Awesome Lists containing this project

README

        

## Electron + React + Rspack

An Electron boilerplate including TypeScript, React, Rspack and ESLint.

> Reference [electron-react-boilerplate](https://github.com/electron-react-boilerplate/electron-react-boilerplate)

![ElectronReactRspack](https://github.com/RyanProMax/image-hub/blob/main/electron-react-rspack/03.png)

![AutoUpdate](https://github.com/RyanProMax/image-hub/blob/main/electron-react-rspack/04.png)

## Installation

Use pnpm in order to install all dependencies.

```bash
pnpm install
```

## Usage

```bash
# 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:

```bash
pnpm package
```

## Features

- [x] **Electron**: update to v31.0.2
- [x] **Typescript**
- [x] **RSPack**: for electron product (preload and main).
- [x] **RSBuild**: for web product.
- [x] **Electron-Store**: local persistent storage.
- [x] **Electron-Log**: local logger.
- [x] **Electron-Builder**: [have to keep using v24.9.1](https://github.com/electron-userland/electron-builder/issues/8175).
- [x] **Electron-Updater**: auto update app version.
- [x] **ESLint**
- [x] **Less**
- [x] **[Arco-Design](https://github.com/arco-design/arco-design)**: a comprehensive React UI components library.
- [x] **Theme**: light/dark mode.
- [x] **CI/CD**: auto build and release when push tag.

## License

[MIT](https://choosealicense.com/licenses/mit/) © [Ryan](https://github.com/RyanProMax)