Skip to content

Chore: Absorb adapt-authoring-defaultplugins into contentplugin module #91

@taylortom

Description

@taylortom

Chore

  • Merge the adapt-authoring-defaultplugins module into adapt-authoring-contentplugin

Rationale

As part of an ongoing effort to reduce the number of standalone modules (see adapt-security/adapt-authoring-core#112 for prior art), adapt-authoring-defaultplugins is a strong candidate for absorption.

The module is a single 26-line file (DefaultPluginsModule.js) that hooks into course creation to auto-add default plugins. Its only peer dependency is adapt-authoring-contentplugin — it has no standalone purpose outside of the content plugin lifecycle.

Approach

Following the pattern established in adapt-security/adapt-authoring-core#112:

  • Move DefaultPluginsModule logic into the contentplugin module as an internal library class (not an AbstractModule subclass)
  • Merge errors.json definitions into the contentplugin error definitions
  • Merge config schemas into the contentplugin config schema
  • Merge documentation and doc plugins (jsdoc-style annotations) into contentplugin
  • Move relevant data schemas into contentplugin
  • Deprecate the standalone adapt-authoring-defaultplugins package

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions