bozon
Framework for building Electron applications
Last updated a month ago by alchaplinsky .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bozon -g
SYNC missed versions from official npm registry.

bozon

Scaffold, Run, Test and Package Electron application with ease

npm version img

What is Bozon?

Bozon is a single tool for handling different tasks being performed by multiple packages, which is used for building desktop applications with Electron. Simplify building, compiling, running, testing, and packaging your application.

  • Electron - build cross platform desktop apps with web technologies
  • Webpack - building and packaging source code for renderer process done with webpack
  • electron-builder - package and distribute your Electron app
  • spectron - Easily test your Electron apps using ChromeDriver and WebdriverIO

img

Installation

npm install -g bozon

Bozon tool should be installed globally in order to be used for all your electron apps.

Scaffolding

Then generate your new project:

bozon new [name]

This will create a new directory [name] produce the following file structure:

  • Use --skip-install option if you want to skip running npm install
  |--config/
  |--resources/
  |--src/
  |  |--main/
  |  |  |--index.js
  |  |--renderer/
  |  |  |--images/
  |  |  |--stylesheets/
  |  |  |--index.js
  |  |  |--index.html
  |--test/
  |--package.json

Starting an application

bozon start

This will compile Application source code to ./builds/development directory and run your application from it.

Configuration

Bozon provides a way to define environment specific and platform specific configuration options. These multiple config files are being merged into one single config object during build. This config object is accessible via CONFIG variable in main process files of your application, so that you can use it in your code.

  |--config/
  |  |--settings.json
  |  |--environments/
  |  |  |--development.json
  |  |  |--production.json
  |  |  |--test.json
  |  |--platforms/
  |  |  |--mac.json
  |  |  |--linux.json
  |  |  |--windows.json

Testing

Bozon is using spectron and mocha spec runner for testing Electron applications. Both unit and integration tests should go to ./test directory. Simply execute for running tests:

bozon test

Packaging application

Packaging Electron application is done by electron-builder using settings in defined in package.json under build section. Application source code is being compiled to ./builds/production/ directory, and packaged versions for different platforms go to ./packages directory.

bozon package [mac|windows|linux]

License

MIT © Alex Chaplinsky

Current Tags

  • 0.10.4                                ...           latest (a month ago)

65 Versions

  • 0.10.4                                ...           a month ago
  • 0.10.3                                ...           3 months ago
  • 0.10.2                                ...           3 months ago
  • 0.10.1                                ...           3 months ago
  • 0.10.0                                ...           4 months ago
  • 0.9.4                                ...           5 months ago
  • 0.9.3                                ...           5 months ago
  • 0.9.2                                ...           6 months ago
  • 0.9.1                                ...           7 months ago
  • 0.9.0                                ...           7 months ago
  • 0.9.0-beta.2                                ...           7 months ago
  • 0.9.0-beta.1                                ...           7 months ago
  • 0.9.0-alpha.6                                ...           7 months ago
  • 0.9.0-alpha.5                                ...           7 months ago
  • 0.9.0-alpha.4                                ...           7 months ago
  • 0.9.0-alpha.3                                ...           7 months ago
  • 0.9.0-alpha.2                                ...           7 months ago
  • 0.9.0-alpha.1                                ...           7 months ago
  • 0.8.12                                ...           a year ago
  • 0.8.11                                ...           a year ago
  • 0.8.10                                ...           a year ago
  • 0.8.9                                ...           a year ago
  • 0.8.8                                ...           a year ago
  • 0.8.7                                ...           a year ago
  • 0.8.6                                ...           a year ago
  • 0.8.5                                ...           a year ago
  • 0.8.4                                ...           a year ago
  • 0.8.3                                ...           2 years ago
  • 0.8.2                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.7.11                                ...           2 years ago
  • 0.7.10                                ...           2 years ago
  • 0.7.9                                ...           2 years ago
  • 0.7.8                                ...           2 years ago
  • 0.7.7                                ...           2 years ago
  • 0.7.6                                ...           2 years ago
  • 0.7.5                                ...           2 years ago
  • 0.7.4                                ...           2 years ago
  • 0.7.3                                ...           2 years ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.8                                ...           3 years ago
  • 0.3.7                                ...           3 years ago
  • 0.3.6                                ...           3 years ago
  • 0.3.5                                ...           3 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 25
Dependencies (15)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |