Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 717 Bytes

PLUGINS.md

File metadata and controls

13 lines (12 loc) · 717 Bytes

List of Plugins

  • No known plugins.

Writing Plugins

  • Note that plugins are essentially extra read reduce action steps (see: reduceActionSteps)
  • You should keep in mind when addPluginReduceActionSteps gets called in src/index.js (reduceActionSteps are executed sequentially).
  • A plugin should be exported as an object.
  • That object should contain a function named getStep.
  • getStep should return [[specificFunc, [...extraSpecificArgs]], [[actionOnReducedFunc, [...extraActionArgs]]]].
  • The specific, reduce and action on reduced functions should all be found within the exported object.
  • Publish the module to npm so others can use the plugin.
  • Edit this file, updating the List of Plugins.