Skip to content

Add autoconfiguration of Nette Extensions #61

Open
@jelen07

Description

@jelen07

I'm not sure if this is the right repostiory for an issue like this, if not I'm sorry in advance.

💡 The idea

It would be really helpful if the developer could enable extension simply by

$ composer require 68publishers/application # or any other Nette extension

and some mechanism will do other manual work automatically. Like

  • register the extension
  • add default configuration if necessary
  • update package.json if the extension has some frontend dependency
  • add or run schema migrations if needed
  • register styles and JS if available
  • show some notice
  • composer remove action
  • composer update
  • and so on

To achieve something like that, it would be necessary to create some recommendations (best practices) for extension structure, project configuration and so on.

There're at least three important questions

  1. How to implement this - should it be the Composer extension or something else?
  2. Where should be stored configuration files - within the extension or in some other repository?
  3. What types of "actions" should be implemented? (see the previous list)

Any hints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions