Plugins
This service is in charge of looking for, loading and registering plugins for the app.
Constructor Summary
Public Constructor | ||
public |
constructor(prefix: string, app: Projext, appLogger: Logger, packageInfo: Object, pathUtils: PathUtils) Class constructor. |
Member Summary
Public Members | ||
public |
The local reference to the main app. |
|
public |
A local reference for the |
|
public |
The implementation |
|
public |
A local reference for the |
|
public |
The prefix the dependencies need to have in order to be identified as plugins. |
Method Summary
Public Methods | ||
public |
Gets the names of the loaded plugins. |
|
public |
Search for plugins on the |
|
public |
loadFromFile(filePath: string) Loads a plugin from a file relative to the project root directory. |
|
public |
Checks whether a plugin was loaded or not. |
Public Constructors
public constructor(prefix: string, app: Projext, appLogger: Logger, packageInfo: Object, pathUtils: PathUtils) source
Class constructor.
Params:
Name | Type | Attribute | Description |
prefix | string | The prefix the dependencies need to have in order to be identified as plugins. |
|
app | Projext | To send to the plugis so they can register their services. |
|
appLogger | Logger | To indicate if a plugin couldn't be loaded. |
|
packageInfo | Object | To read the dependencies list. |
|
pathUtils | PathUtils | To build the dependencies paths. |
Public Members
Public Methods
public load(dependencies: boolean, devDependencies: boolean) source
Search for plugins on the package.json
and loads them.