TypeScript + React + Webpack + Electron + Obfuscation in prod = This project
A barebones boilerplate to get typescript, webpack, react, babel, obfuscation in prod AND hot reloading on the main and renderer working with electron. It's the real deal. 🎉
You must have Node.js and yarn 1.2 installed on your computer. As well as a git
implementation. I can reccomend git-scm.
Use of yarn
is highly reccomended over npm
. We will not accept PRs with a package-lock.json
!! 😄
I recommend using this with either WebStorm or VSCode, and installing the ESLint & Prettier extensions for VSCode. They will enable a clean code style for you and help you maintain your code quickly and easily.
$ git clone https://github.com/aabbccsmith/electron-webpack-obfuscation
$ cd electron-webpack-obfuscation
$ rm -rf .git
$ yarn install
After running these, you are ready to start writing code! It's that simple.
To start the app in development, run yarn dev
. For compiling, run yarn dist
.
To compile the app, we use electron-builder
. It's very versatile and supports many operating systems. Additionally, it supports the publishing of apps to GitHub, Amazon AWS S3 or even custom servers.
Building is simple, simply run yarn dist
and wait for the magic to happen. You will see a folder called dist
is created. You may delete this after the build process has completed. Your releases (installers, zips, dmgs, etc...) can be found under release/
What's the best way to get this into my own repo?
You are passively sponsoring OSS (Open Source Software) by using this boilerplate. Thank you! If you liked it, please give this repo a star :)