balsigergil / electron-react-typescript-boilerplate

Another boilerplate for Electron with React and Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron boilerplate with React and Typescript

Another boilerplate for Electron with React and Typescript but simpler and more maintainable.

Get started

Clone the template and move into the directory :

git clone --depth=1 https://github.com/balsigergil/electron-react-typescript-boilerplate.git <your-project>
cd <your-project>

Install dependencies and start the development build :

yarn
yarn start

Folders structure

<your-project>
┝ configs:  webpack configurations
┝ dist:     webpack output directory
┝ out:      electron-builder output directory for production builds
┝ res:      resources for Electron and electron-builder (e.g. icons)
┝ scripts:  babel script
└ src:      you already know what that is :)

Build for production

Build for production using electron-builder with :

yarn dist

Clean generated directories

Remove the out and dist directories.

yarn clean

About

Another boilerplate for Electron with React and Typescript

License:MIT License


Languages

Language:TypeScript 76.4%Language:HTML 12.9%Language:SCSS 8.6%Language:JavaScript 2.1%