Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solves for issue #6 by adding path string to the context object used … #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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