https://github.com/lindseyb/electron-react-template
A electron app template that uses React.js and has some other useful tools
https://github.com/lindseyb/electron-react-template
bulma dependabot electron electron-forge eslint husky prettier react template webpack
Last synced: about 1 month ago
JSON representation
A electron app template that uses React.js and has some other useful tools
- Host: GitHub
- URL: https://github.com/lindseyb/electron-react-template
- Owner: LindseyB
- License: cc0-1.0
- Created: 2021-12-31T21:01:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T17:31:28.000Z (about 2 months ago)
- Last Synced: 2025-03-13T18:26:01.309Z (about 2 months ago)
- Topics: bulma, dependabot, electron, electron-forge, eslint, husky, prettier, react, template, webpack
- Language: JavaScript
- Homepage:
- Size: 21.9 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Electron React Template
Based off of [electron quick start](https://github.com/electron/electron-quick-start) and expanded to have my common stack.
## What's setup here?
- [Electron](https://www.electronjs.org/)
- With an example [IPC](https://www.electronjs.org/docs/latest/api/ipc-main) call
- With an empty renderer.js file if you want to use that instead of react
- [React](https://reactjs.org/)
- [Webpack](https://webpack.js.org/)
- [Electron Forge](https://www.electronforge.io/)
- [Bulma](https://bulma.io/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- A github action for automatically checking branches with eslint and prettier
- [Husky](https://typicode.github.io/husky/) for adding an automatic post commit hook to lint and format code
- [Dependabot](https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates)## Quick start
```bash
git clone [email protected]:LindseyB/electron-react-template.git
cd electron-react-template
npm install
npm run dev
```## Scripts
### `npm start`
Run the application
### `npm run dev`
Starts the application with webpack in watchmode using concurrently to watch both
### `npm run make`
Build the application for distribution
### `npm run build`
Build the webpack (render side only)
### `npm run build:watch`
Run building webpack (render side only) in watchmode
### `npm run lint`
Run eslint
### `npm run lint:fix`
Run eslint with autofix enabled
### `npm run format`
Run prettier
### `npm run format:fix`
Run prettier with autofix enabled