This is a sample repository of Electron application.
This boilerplate includes the following build tasks:
- Transpillation React JSX and ES6 style JavaScript files with Babel
- Compilation scss files
- Livereload when you change source files
- Packaging distribution apllicatoins for each platforms(win32, darwin, linux)
Clone this repository, so execute the following command.
cd electron-jsx-babel-boilerplate
npm install -g bower gulp electron-prebuilt
npm install
gulp serve
gulp build;electron dist
gulp package
gulp boilerplate -o {DIST_DIR}
+ .serve/ Compiled files
+ dist/ Application for distribution
- release/ Packaged applications for platforms
|+ darwin/
|+ linux/
|+ win32/
- src/ Source directory
|- assets/
|+ images/
|- browser/ For browser process scripts
|+ menu/
|- renderer/ For renderer process scripts and resources
|+ components/ React components
| bootstrap.js Entry point for render process
| index.html
|- styles/ SCSS directory
| main.scss
| app.js Entry point for browser process
bower.json
gulpfile.js
package.json