https://github.com/gaoshang212/electron-vite-react-typescript
https://github.com/gaoshang212/electron-vite-react-typescript
electron react vite
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gaoshang212/electron-vite-react-typescript
- Owner: gaoshang212
- Created: 2021-11-15T07:52:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T03:28:04.000Z (about 4 years ago)
- Last Synced: 2025-03-27T06:31:56.244Z (about 1 year ago)
- Topics: electron, react, vite
- Language: TypeScript
- Homepage:
- Size: 352 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Electron Boilerplate with React, TypeScript & Vite
A bare minimum react typescript vite boilerplate.
Note that this project does not include **Server-Side Rendering**, **Testing Frameworks** and other stuffs that makes the package unnecessarily complicated.
#### See also:
- [vite-electron-builder](https://github.com/cawa-93/vite-electron-builder)
## Contains
- [x] [Electron](https://electronjs.org/) 15.3
- [x] [Typescript](https://www.typescriptlang.org/) 4.5
- [x] [React](https://facebook.github.io/react/) 17
- [x] [React Dev Tools](https://github.com/facebook/react)
- [x] [eslint](https://eslint.org/) 7.32
- [x] [source-map-explorer](https://github.com/danvk/source-map-explorer) 2.5
- [ ] [prettier](https://prettier.io/)
### Build tools
- [x] [Vite](https://vitejs.dev/) 2.7
- [x] [electron-rebuild]()
- [x] [electron-notarize](https://github.com/electron/electron-notarize)
### Package tools
- [x] [electron-builder](https://www.electron.build/) 22.13
## Setup
```
$ npm install
```
## Running
```
$ npm run build
$ npm start
```
## Dev
```
$ npm run dev
```
## Package
```
$ npm run package
```
## Mac notarize app
Befroe: Set teamId, appleId, appleIdPassword in ./scripts/afterSignHook .js
you can see: https://github.com/electron/electron-notarize
```
export ALLOWNOTARIZE='true'
npm run package
```
###
## Eslint
```
$ npm run lint
```
# License
MIT