The following project is a boilerplate for compiling an electron application. Using git submodules we can link to another web project that builds its output to a build folder. The build process will copy the build folder over and inject it as the contents for the electron app.
// Install the dependencies
$ npm install
// This will add the repo as a submodule with its contents under the contents folder.
$ git submodule add REPO_URL contents
// If compile for linux the gettext package is required.
$ brew install gettext
// Compile the electron app.
$ npm run compile && npm run dist
// or
// Launch electron pointing at the development server.
$ npm run live
##TODO
- Update category for Linux for the build node under package.json to remove the warning.
- Code signing for compiled applications.
- Update the live build to include the proper react extensions in the dev tools.