Giter VIP home page Giter VIP logo

electron-plugins's People

Contributors

justinmchase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-plugins's Issues

Define custom plugins location

Hi,

It would be very nice to be able to define one or many plugins locations instead of relaying on a single default one.

I'd like for instance to be able to load plugins to populate toolboxes, file handers etc... when needed only.

Thanks!

Plugins naming convention

hello i am finding strange that I am forced to name my plugins at least following the example:

<name of the app>-<name of the plugin>

if is not like that i get the next crash:
image
am i doing something worng? is there a gracefulier way to treat the failure of plugin loading?

why are the modules not return in the callback?

so i have my use case where i need to call some functions common to my modules during execution. I am finding that this seems not actually possible as in the callback the return values are a list of the 'dependencies'.

function loadPlugin(context, results, callback) {
    var modules = []
    var dependencies = []
    try {
            ...
            var Plugin = require(file)
            var mod = new Plugin(context.appContext)
            modules.push(mod)
            dependencies.push(depName)
        }
    } catch (err) {
        return callback(err)
    }

    callback(null, dependencies)
}

is there any why the modules collection should not be returned in the callback?

loding plugins must be always at root level

If the loading file (index.js) is not at the same level than the package.json, you get the next error:

{ [Error: ENOENT: no such file or directory, open '/home/knek/code/koteky/src/package.json']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/knek/code/koteky/src/package.json' }

fs dependecy error

Hi i using the latest version of this plugin.
I included plugins part in my package.json of my app
But when i launch my app i have this error:
Uncaught TypeError: fs.readFile is not a function

Can you help me?

Thanks in advance.

Is loading user plugin secure?

Hi,

I would like allow users to add guest plugins to my app.
Is it secure to Javascript app core code? - it should be private.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.