Skip to content

Plugin Support - Live Editing #2

@R4wizard

Description

@R4wizard

With the current implementation, development requires either:

  1. manually editing the plugin next to a running instance of ShadowBot; or
  2. frequently publishing the plugin to npm and using the update functionality.

Since the core supports loading plugins from a local folder on the same machine as a running instance of ShadowBot, this allows us to override any external plugins with a local copy.

Using this functionality we should create a plugin (shadowbot-plugin-live) that allows:

  • Cloning a remote repository (via git) to a local folder (using the dataPath option).
  • Creating a fresh plugin ready for development.
  • Launching an instanced copy of CodeBox for live editing of the plugin.
  • Comitting the updated/modified code back to the remote repository.
    • This could be quite complicated and might require managing a set of credentials; maybe we can add something to CodeBox or maybe CodeBox already supports something similar.
  • Removal of the local copy of the plugin when finished.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions