Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliot-akira/btron
Bundle Electron projects with live reload
https://github.com/eliot-akira/btron
Last synced: about 1 month ago
JSON representation
Bundle Electron projects with live reload
- Host: GitHub
- URL: https://github.com/eliot-akira/btron
- Owner: eliot-akira
- Created: 2017-01-03T15:58:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-14T07:10:56.000Z (over 6 years ago)
- Last Synced: 2024-09-18T05:28:10.810Z (about 2 months ago)
- Language: JavaScript
- Size: 297 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# B-Tron
Bundle [Electron](http://electron.atom.io/) projects with live reload
## Install
```bash
npm install btron -g
```..or as devDependency:
```bash
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](http://ejs.co/)
`/client/index.scss` - Compiled via [Sass](https://sass-lang.com/)
`/client/index.js` - Compiled via [Browserify](http://browserify.org/)
`/icons` - Icons for packaged app
`/server` - Compiled via [Babel](https://babeljs.io/)
`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`