Plugin
Static Method Summary
Static Public Methods | ||
public static |
loadFromDirectory(directory: string) Load all .js files from a directory and load them as a plugin. |
|
public static |
loadFromPackageJson(directory: string, pluginConfigs: *) |
|
public static |
loadPlugin(pluginPath: string, options: object) Using node's require function, load a plugin and invoke it, passing it the API object and any other additional objects defined from the _config.yml file. |
Static Public Methods
public static loadFromDirectory(directory: string) source
Load all .js files from a directory and load them as a plugin.
Params:
Name | Type | Attribute | Description |
directory | string | Path to directory where plugin files exist. |
public static loadFromPackageJson(directory: string, pluginConfigs: *) source
Params:
Name | Type | Attribute | Description |
directory | string |
|
|
pluginConfigs | * |