@electrojet/electron

Build scripts for use with create-electrojet

Usage no npm install needed!

<script type="module">
  import electrojetElectron from 'https://cdn.skypack.dev/@electrojet/electron';
</script>

README

Electrojet Electron

npm version code style: prettier coding style: standard

A CLI for running electron applications generated by 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:

module.exports = {
  buildOptions: {
    dir: process.cwd(),
    all: true,
  }
}

All options from Electron Packager are supported.