Skip to content

Plugin System #85

@balupton

Description

@balupton

Just realised I hadn't yet created an issue for this, besides it being confirmed to come.

Here is the current plan.

Event Emitter Grouped events:

  • reset
  • load
    • load:package-files
    • load:readme-files
  • merge
    • merge:package-files
  • enhance
    • enhance:package-files
    • enhance:readme-files
  • save
    • save:package-files
    • save:readme-files

Plugins will be given an opts property, that contains the data that projectz has, consider it a singleton that the plugins can share with each other. The util package will be published separately or within a submodule of the projectz package. Having the functions of the util package be their own packages makes most sense.

On the first iteration, only enhance:readme-files would be necessary. Then later the rest can be added. Whether enhance:readme-files provides data, or an individual files value, is to be determined, there is an argument for it to provide enhance:readme-file(value, opts, next)


if you want this feature, +1 this post, and also if you can donate https://bevry.me/donate

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR / Bounty onlyExternal demand, as such, external funding / effort is required to make this happenenhancementImprovement or suggestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions