Skip to content

Conversation

@dbolack-ab
Copy link

…on load.

Also adds two booleans. One to create the plugin path if not found and another to quiet console messages.

If the provided app path is empty, the default will be used.
If the first character of the path is ~, that will be substitued with the results of os.homedir()
If the last character of the path is :, that will be sibstituted with the App Path per ApplicationPath
Both substitutions are performed with path.join.

README.md updated to match.

…ject used on load.

Also adds two booleans. One to create the plugin path if not found and another to quiet console messages.

If the provided app path is empty, the default will be used.
If the first character of the path is ~, that will be substitued with the results of os.homedir()
If the last character of the path is :, that will be sibstituted with the App Path per ApplicationPath
Both substitutions are performed with path.join.

README.md updated to match.
… return either the highest installed version or the LINK version based on a passed boolean.

Added plugins attribute to the context object allowing the user to provide an object of plugins from another settings store or the discovery function. Object format should match the { pluginname: version, ...} attribute scheme already used.

Did a little linty clean up.
Updated README.md to hopefully explain these changes.
Added compare-versions depend for semvar comparisons.
Reworked a little bit of shared code into common helper functions ( substitutePluginPath )

discover function does NOT load, only finds.
@justinmchase
Copy link
Contributor

justinmchase commented Jan 26, 2018

Hey, thanks for the PR!

I'm the original author of this package and as such am willing to merge this change and publish it but I have been out of the loop with the evolve team and would like to hear any feedback they may have on these changes before doing so.

@BlairEvolve I'm not sure if this library still affects the client or not but I'm happy to help transfer npm module ownership or just publish changes as needed.

This allows you to load plugins from teh main thread instead of a renderer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants