Git Product home page Git Product logo

electron-jsx-babel-boilerplate's Introduction

electron-jsx-babel-boilerplate

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)

Install

Clone this repository, so execute the following command.

cd electron-jsx-babel-boilerplate
npm install -g bower gulp electron-prebuilt
npm install

Run application

With file watch and livereload

gulp serve

Pre-packaging app

gulp build;electron dist

Package application

gulp package

Copy this boilerplate

gulp boilerplate -o {DIST_DIR}

Directory structure

+ .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

electron-jsx-babel-boilerplate's People

Contributors

audionerd avatar quramy avatar ythecombinator avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.