{"repo":"yhirose/react-typescript-electron-sample-with-create-react-app-and-electron-builder","free":true,"listed":false,"github":"https://github.com/yhirose/react-typescript-electron-sample-with-create-react-app-and-electron-builder","clone":"git clone https://github.com/yhirose/react-typescript-electron-sample-with-create-react-app-and-electron-builder.git","description":"React-TypeScript-Electron sample with Create React App and Electron Builder","language":"TypeScript","stars":473,"topics":["electron","react","typescript","create-react-app","electron-builder","hot-reload"],"license":null,"category":"ui-components","readme_excerpt":"React-TypeScript-Electron sample with Create React App and Electron Builder =========================================================================== This project was bootstrapped with Create React App with --template typescript option. On the top of it, the following features have been added with relatively small changes: TypeScript supports for Electron main process source code Hot-reload support for Electron app Electron Builder support Available Scripts in addition to the existing ones npm run electron:dev Runs the Electron app in the development mode. The Electron app will reload if you make edits in the electron directory. You will also see any lint errors in the console. npm run electron:build Builds the Electron app package for production to the dist folder. Your Electron app is ready to be distributed! Project directory structure Do it yourself from scratch Generate a React project and install npm dependencies Make Electron main process source file electron/tsconfig.json electron/main.ts Adjust package.json Add properties for Electron Add properties for Electron Builder Add scripts Many thanks to the following articles! - ⚡️ From React to an Electron app ready for production - How to build an Electron app using Create React App and Electron Builder - Application entry file reset to default (react-cra detected and config changed incorrectly) - Serving the Same Build from Different Paths","default_branch":null,"files":null,"tree":[],"storefront":"/r/yhirose","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yhirose/react-typescript-electron-sample-with-create-react-app-and-electron-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}