Skip to content

plugin in separate repository #45

Open
@restjohn

Description

@restjohn

Hello and thanks for your article and repo.

Is there a way to extend this architecture such that plugin code can exist in a different Angular library/repository, and build against the core app as an NPM dependency? Would this require that the core app be broken into separate projects, something like a library of injectable services and shared libraries that plugins can inject and use, as well as the main app entry point? The main app would then use the core library, just as the plugins would. A plugin's package.json file might then look something like

{
  ...,
  "dependencies": {
    "@myapp/core_services": "~1.0.0"
    ...
  }

Then NPM would enforce version compatibility between the plugins and the core app.

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