1.0.5 • Published 3 years ago

electron-adapter v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Electron Adapter 🛠

npm version CI Known Vulnerabilities semantic-release: angular

This is a library to build platform (win, linux, mac) executables for a bundled static web application. It is also possible to debug the application with HMR.

Table of Contents

Installation

npm install --save electron-adapter

Important NOTE

The README.md file is under construction ☂ at the moment. So please stay patient or contribute to it, till it covers all parts ⭐.


Usage

The best way to use the following commands, is by creating shortcuts in the package.json file.

{
    "scripts": {
        "init": "electron-adapter init",
        "dev": "electron-adapter dev",
        "build": "electron-adapter build"
    }
}

Init

To init the project folder with the necessary files, run the command:

npm run init

or

electron-adapter init

This will create the following files/directories, if they do not already exist:

Directories

  • entrypoint
  • src

Files

  • .electron-builder.yml
  • tsconfig.json
  • entrypoint/index.ts
  • src/index.js
  • src/index.html

The entrypoint & src path and other specifications, can be changed with a configuration file in the root directory of the project.

Therefore, create a .electron-adapter.yml file in the root folder with the following content:

module.exports = {
    port: 9000,
    
    // framework: 'nuxt' | 'next',
    
    // rootPath: '',
    
    // buildDirectory: 'dist',
    
    entrypointDirectory: 'entrypoint',
    
    rendererDirectory: 'src',
}

Dev

To run the application in development mode, with Hot Module Replacement (HMR).

npm run dev

or

electron-adapter dev

Build

To build the application for an operating system, run the following command.

npm run build

or

electron-adapter build

License

Made with 💚

Published under MIT License.

1.0.5

3 years ago

1.0.4-next.2

3 years ago

1.0.4-next.1

3 years ago

1.0.4-next.0

3 years ago

1.0.4-next.6

3 years ago

1.0.4-next.5

3 years ago

1.0.4-next.4

3 years ago

1.0.4-next.3

3 years ago

1.0.4-next.7

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.20

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago