Plugins
Provides a wrapper around PluginManager for ESComplexProject. Several convenience methods for the plugin callbacks properly manage and or create initial data that are processed by the plugins.
The default plugins loaded include:
Constructor Summary
Public Constructor | ||
public |
constructor(options: object) Initializes Plugins. |
Member Summary
Private Members | ||
private |
_pluginManager: PluginManager Provides a generic plugin manager for dispatching events to module plugins. |
Method Summary
Public Methods | ||
public |
onConfigure(options: object): object Initializes the default |
|
public |
onProjectEnd(pathModule: object, projectReport: ProjectReport): ProjectReport Invokes the |
|
public |
onProjectStart(pathModule: object, settings: object) Initializes the default |
Public Constructors
public constructor(options: object) source
Initializes Plugins.
Params:
Name | Type | Attribute | Description |
options | object | module options including user plugins to load including:
|
Private Members
private _pluginManager: PluginManager source
Provides a generic plugin manager for dispatching events to module plugins.
Public Methods
public onConfigure(options: object): object source
Initializes the default settings
object hash and then invokes the onConfigure
plugin callback for all loaded
plugins.
Params:
Name | Type | Attribute | Description |
options | object | (Optional) project processing options. |
public onProjectEnd(pathModule: object, projectReport: ProjectReport): ProjectReport source
Invokes the onProjectEnd
plugin callback for all loaded plugins such they might finish calculating project
report metrics.
Params:
Name | Type | Attribute | Description |
pathModule | object | Provides an object which matches the Node path module. |
|
projectReport | ProjectReport | An instance of ProjectReport. |
Return:
ProjectReport |