Skip to content

Consider few features? #4

@tunnckoCore

Description

@tunnckoCore
  • allow passing custom plugins property, currently is just .fns - maybe opts.prop
  • allow accept options to each plugin, like .use(plugin, options)
  • from above needs next: allow passing function to transform/extend/merge app.options and options that comes from each plugin - something like opts.fn.call(self, self, options) in the .use method
  • allow passing custom arguments to plugin function, currently is only app - maybe something like opts.params make sense
  • allow passing not only object to .run allow passing more than 1 object to run? Or at least "options" #2, but any kind and any number of arguments

You can see all this with tests in https://github.com/tunnckoCore/use-ware :)

Let me know if you want some PRs.
It would be great to merge, because I like this nesting that this package allows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions