A solid :) boiler plate starter pack when starting an electron project which uses create-react-app with typescript.
GPL-3.0 License
This is a boiler plate starter pack when starting an electron project which uses react with typescript. The code contains some bug fixes that are found when using react with electron and typescript and has auto monitoring of typescript changes to reload the electron app for faster development.
cd renderer
npm install // First time only
npm run start
cd main
npm install // First time only
npm run start
main/package.json
to the renderer/package.json
and the run the below command from the renderer
folder.cd renderer
npm run release // or npm run build
Sit back and have a cup of Coffee while the app gets built .
You will now have a full fledged application waiting for you in the dist
folder.
HashRouter
instead of BrowserRouter
.renderer/package.json
, use the build
property to modify the settings for electron-builder. All assets and static files in your project should be present in the assets
folder.target
property inside the build
property in renderer/package.json
.main
folder , make sure that you copy all the generated javascript .js
files into the renderer/public/
folder before building the react app (This would add the javascript files in the public folder into the build folder when building our react-app).