infusion-electron

0.10.0 • Public • Published

infusion-electron

Infusion-Electron is a collection of Fluid Infusion components that make it easier to use Electron.

Using infusion-electron

  1. Declare dependencies on Infusion and infusion-electron in your application's package.json file:

    { "name": "my-infusion-electron-app", "dependencies": { "infusion": "2.0.0", "infusion-electron": "0.4.0" } }

  2. require() Infusion and infusion-electron:

    var fluid = require("infusion"); require("infusion-electron");

  3. Define your application component. Windows can be child components of your app:

    fluid.defaults("myapp.app", { gradeNames: "electron.app",

     commandLineSwitches: {
         "disable-renderer-backgrounding": null
     },
    
     components: {
         mainWindow: {
             createOnEvent: "onReady",
             type: "electron.browserWindow",
             options: {
                 width: 1920,
                 height: 1080,
                 url: "html/main-window.html"
             }
         },
     }
    

    });

Attribution and License

This library was written by Colin Clark and is distributed under the "new" BSD 3-clause license.

/infusion-electron/

    Package Sidebar

    Install

    npm i infusion-electron

    Weekly Downloads

    0

    Version

    0.10.0

    License

    BSD-3-Clause

    Unpacked Size

    40.4 kB

    Total Files

    29

    Last publish

    Collaborators

    • colinbdclark