A complete tool for building modern Electron applications
Last updated 2 years ago by zwodder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zwodder/core 
SYNC missed versions from official npm registry.

Electron Forge Core

This module contains the core logic of Electron Forge and exposes the base API as a number of simple JS functions.

Basic Usage

import { api } from '@zwodder/core'

// Package the current directory as an Electron app

The named export api has it's methods documented over at ForgeAPI. All the methods are async and expose the core forge methods, please note that all user-side configuration is still done through your forge config file or the "config.forge" section of your package.json. This API simply let's you call the methods in node land without using the CLI.

Error Handling

As all methods return a promise you should handle all rejections, you should note that rejections will not always be errors, in fact we commonly reject our promises with just strings so do not assume that properties such as stack or message will exist on thrown errors.

Current Tags

  • 6.0.0-beta.31                                ...           latest (2 years ago)

1 Versions

  • 6.0.0-beta.31                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (29)
Dev Dependencies (16)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |