Bundle Electron projects with live reload
npm install btron -g
..or as devDependency:
npm install btron -D
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 Babelpackage.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
, orall
- The app name is from
name
property of the project'spackage.json
The following are included by default.
- Babel presets:
env
,stage-0
andreact
- Babel plugin:
add-module-exports