UNPKG

@electrojet/electron

Version:

Build scripts for use with create-electrojet

51 lines (37 loc) 1.35 kB
<div align="center"> <h1>Electrojet Electron</h1> <a href="https://badge.fury.io/js/%40electrojet%2Felectron"> <img src="https://badge.fury.io/js/%40electrojet%2Felectron.svg" alt="npm version" height="18"> </a> <a href="#badge"> <img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"> </a> <a href="https://standardjs.com"> <img alt="coding style: standard" src="https://img.shields.io/badge/code_style-standard-brightgreen.svg"> </a> </div> A CLI for running electron applications generated by [`create-electrojet`](https://www.npmjs.com/package/create-electrojet) ## Commands ### 1. Start Starts a development server using webpack. ``` electrojet-electron start --port=4567 ``` Port is defaulted to 4567. Starts up electron process for serving your application. ### 2. Build Builds the application to all platforms. ``` electrojet-electron build ``` This builds the current directory for with `all` option for packages. If you want to build for a specific package, edit the configuration at `electrojet.config.js`: ```js module.exports = { buildOptions: { dir: process.cwd(), all: true, } } ``` [All options](https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options) from Electron Packager are supported.