Minimal Electron Starter Kit built with Typescript, React, Webpack 5 and Babel 7
To create a JS library, check out js-library-boilerplate-basic.
- Electron 17
- React 17
- Webpack 5
- Babel 7
- Hot reloading (
- Jest unit testing (+ Enzyme)
📦 Getting Started
git clone https://github.com/hodgef/electron-webpack-boilerplate.git my-app npm install
⚠️ Note: This boilerplate uses
nodeIntegrationby default, which allows your renderer code to access node. Only use this boilerplate if you are running trusted code in your app. Alternatively, you can change this setting in
src/main/index.tsand adjust accordingly.
Before shipping, make sure to:
package.jsoninformation (This will be used to package your app)
- (Optional) Set-up releases, code signing, notarization for your app. Additional docs on this coming soon.
npm startto develop your app with Hot Reloading on changes.
npm serve:distto serve a semi-production app from the build folder.
npm run distto build executables for your app, according to the information in your package.json.
npm run testto run unit tests for your app.