Skip to content

Conversation

@jrainville
Copy link
Collaborator

Adds 3 contexts (others can be added):

  • blockchain
  • simulator
  • any

When we connect to the node, we check which of the context we are in. Plugins that have a specific environment condition won't load until the context changes to the one needed.

Designed to be completely backwards compatible, meaning that plugins not specifying a context will default to any. To tell embark that a plugin only works with the blockchain, just need to add the field "context": "blockchain" in embark.json.

@iurimatias iurimatias merged commit c77d52c into develop Apr 24, 2018
@jrainville jrainville deleted the bug_fix/limit-plugins-on-envs branch April 24, 2018 22:43
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