bozon
Command line tool for building, testing and publishing modern Electron applications
Last updated 8 days ago by alchaplinsky .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bozon -g
SYNC missed versions from official npm registry.

bozon

Command line tool for building, testing and publishing modern Electron applications

npm version img

Bozon is a simple, easy to use tool that unifies the existing build tools for Electron development. Simplify building, compiling, running, testing, and packaging your Electron applications.

Features

  • Scaffolding - Generate ready to use project structure for your new Electron application.
  • Running - Run your electron application with Hot Reload in development environment.
  • Testing - Build Application for test env and run feature tests for your Electron application.
  • Packaging - Build, package and publish your Electron app for Mac, Windows and Linux platforms.

Bozon uses Webpack to bundle source code for main and renderer processes as well as preload script. It adds webpack.config.js file to your project so that you can further configure webpack, add new rules, loaders etc. Jest along with Spectron are used to run your unit and feature tests within real Electron application. For packaging and publishing applications bozon uses electron-builder under the hood.

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
  |  |--preload/
  |  |  |--index.js
  |  |--renderer/git 
  |  |  |--index.html
  |  |  |--images/
  |  |  |--stylesheets/
  |  |  |--javascripts/
  |  |  |  |--index.js
  |--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 Jest and Spectron 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

  • 1.0.5                                ...           latest (8 days ago)

86 Versions

  • 1.0.5                                ...           8 days ago
  • 1.0.4                                ...           9 days ago
  • 1.0.3                                ...           a month ago
  • 1.0.2                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
  • 1.0.0-beta.1                                ...           2 months ago
  • 1.0.0-alpha.10                                ...           2 months ago
  • 1.0.0-alpha.9                                ...           2 months ago
  • 1.0.0-alpha.8                                ...           2 months ago
  • 1.0.0-alpha.7                                ...           2 months ago
  • 1.0.0-alpha.6                                ...           2 months ago
  • 1.0.0-alpha.5                                ...           2 months ago
  • 1.0.0-alpha.4                                ...           2 months ago
  • 1.0.0-alpha.3                                ...           2 months ago
  • 1.0.0-alpha.2                                ...           2 months ago
  • 1.0.0-alpha.1                                ...           2 months ago
  • 0.10.8                                ...           4 months ago
  • 0.10.7                                ...           4 months ago
  • 0.10.6                                ...           5 months ago
  • 0.10.5                                ...           6 months ago
  • 0.10.4                                ...           8 months ago
  • 0.10.3                                ...           9 months ago
  • 0.10.2                                ...           10 months ago
  • 0.10.1                                ...           10 months ago
  • 0.10.0                                ...           a year ago
  • 0.9.4                                ...           a year ago
  • 0.9.3                                ...           a year ago
  • 0.9.2                                ...           a year ago
  • 0.9.1                                ...           a year ago
  • 0.9.0                                ...           a year ago
  • 0.9.0-beta.2                                ...           a year ago
  • 0.9.0-beta.1                                ...           a year ago
  • 0.9.0-alpha.6                                ...           a year ago
  • 0.9.0-alpha.5                                ...           a year ago
  • 0.9.0-alpha.4                                ...           a year ago
  • 0.9.0-alpha.3                                ...           a year ago
  • 0.9.0-alpha.2                                ...           a year ago
  • 0.9.0-alpha.1                                ...           a year ago
  • 0.8.12                                ...           a year ago
  • 0.8.11                                ...           2 years ago
  • 0.8.10                                ...           2 years ago
  • 0.8.9                                ...           2 years ago
  • 0.8.8                                ...           2 years ago
  • 0.8.7                                ...           2 years ago
  • 0.8.6                                ...           2 years ago
  • 0.8.5                                ...           2 years ago
  • 0.8.4                                ...           2 years 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                                ...           3 years ago
  • 0.7.7                                ...           3 years ago
  • 0.7.6                                ...           3 years ago
  • 0.7.5                                ...           3 years ago
  • 0.7.4                                ...           3 years ago
  • 0.7.3                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.6                                ...           4 years ago
  • 0.5.5                                ...           4 years ago
  • 0.5.4                                ...           4 years ago
  • 0.5.3                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.8                                ...           4 years ago
  • 0.3.7                                ...           4 years ago
  • 0.3.6                                ...           4 years ago
  • 0.3.5                                ...           4 years ago
  • 0.3.4                                ...           4 years ago
  • 0.3.3                                ...           4 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 2
This Month 2
Last Day 0
Last Week 33
Last Month 41
Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |