Skip to content

eliot-akira/btron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B-Tron

Bundle Electron projects with live reload

Install

npm install btron -g

..or as devDependency:

npm install btron -D

Commands

btron new [app name]

  • Create a new project folder with basic structure

    /assets - Contents will be copied to /build

    /client/index.html - Compiled via Ejs

    /client/index.scss - Compiled via Sass

    /client/index.js - Compiled via Browserify

    /icons - Icons for packaged app

    /server - Compiled via Babel

    package.json - Dependencies (not devDependency) will be installed in /build

btron

  • Build the app, watch for file change, then recompile and reload

btron [platform]

  • Package the app for specified platform: mac, win, linux, or all
  • The app name is from name property of the project's package.json

Defaults

The following are included by default.

  • Babel presets: env, stage-0 and react
  • Babel plugin: add-module-exports

About

Bundle Electron projects with live reload

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published