Options
All
  • Public
  • Public/Protected
  • All
Menu

A helper class for discovering and interacting with NPM-style modules.

Hierarchy

  • NodeModules

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected Readonly bus

Protected Readonly logging

logging: Logging

Protected Readonly manager

manager: string

Methods

app

  • app(): Promise<NodeModule>

discover

  • discover(): Promise<void>
  • Iterate over packages, recursively, starting with the base application's package.json and fire PackageDiscovered events for any that have a valid Extollo discovery entry.

    Returns Promise<void>

Protected discoverRoot

  • discoverRoot(root: UniversalPath, module: NodeModule, seen?: string[]): Promise<void>
  • Recursively discover child-packages from the node_modules root for the given module.

    Fires PackageDiscovered events for valid, discovery-enabled packages.

    Parameters

    • root: UniversalPath

      the path to node_modules

    • module: NodeModule

      the module whose children we are discovering

    • seen: string[] = []

      used to prevent duplicate packages when recursing

    Returns Promise<void>

root

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.