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

Custom nodes - plugins #6

Open
Idered opened this issue Apr 14, 2020 · 0 comments
Open

Custom nodes - plugins #6

Idered opened this issue Apr 14, 2020 · 0 comments
Labels
discussion Loose conversations enhancement New feature or request
Milestone

Comments

@Idered
Copy link
Owner

Idered commented Apr 14, 2020

All current nodes should be in form of a plugin.

Example: nodes.sequence() returns an object without function to interpret it. If we want pluggable nodes then it should contain interpretation logic.

Here are some ideas after pluggable nodes will be implemented:

  1. Move default nodes to separate package @btree/nodes
  2. @btree/core should only contain functions for creating nodes and executing tree
  3. Allow people to create custom set of nodes
  4. Default nodes implementation should be optional
  5. If default nodes will be in separate package then nodes.root should not be a node but a normal function eg. createTree - it should be in core package.

Implementing this is crucial for library future. People have different needs and there's no way to fulfill them all. With solid plugin system we could keep this lib alive.

@Idered Idered added enhancement New feature or request discussion Loose conversations labels Apr 14, 2020
@Idered Idered added this to the 1.0.0 milestone Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Loose conversations enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant