Installing extensions as node modules
Hello there,
I would like to call for help and see if anyone is willing to contribute on this. I need a way for people to be able to install extensions as modules.
The install would go like any other nodejs module install:
npm install --save some-extension
Then, automatically, when the app is built, these extensions should be moved into another folder inside the app, in this case, the extensions folder.
The path to the extensions folder is ../extensions
App
-- src
---- extensions
@justinmchase I liked your answer here: https://github.com/npm/npm/issues/3597#issuecomment-67889616 If you are willing to give me a hand, I would greatly appreciate it.
Good timing!
This may be relevant: https://github.com/EvolveLabs/electron-updater/issues/48#issuecomment-175260052
Basically I created an updater for electron which supports plugins but I'm backing off from the full updater portion of it. It is still useful however as a plugin downloader and updater, and now that you mention it, that wouldn't really need to be electron specific at all.
So sometime soon I may pull out the plugin portion of that project and make a new project that would essentially do what you're asking for.