-
<async> _createPluginInstance(Class, options)
-
create the plugin instance and add it int the plugins object
Parameters:
| Name |
Type |
Description |
Class |
constructor
|
|
options |
Oject
|
|
-
_getPluginConfig(name)
-
Load plugin.json file
Parameters:
| Name |
Type |
Description |
name |
*
|
|
-
<async> _getPluginDependencies(plugin)
-
Return an array of plugin dependencies
Parameters:
| Name |
Type |
Description |
plugin |
sting
|
plugin name |
-
<async> _getPluginPath(name)
-
Return a plugin path
Parameters:
| Name |
Type |
Description |
name |
string
|
|
Returns:
-
Type
-
string
-
<async> _getPluginsDependencies()
-
return an object with plugins dependencies
-
<async> _readPluginFiles()
-
-
<async> getDependenciesOrder()
-
Return an array of plugin name sort by dependencies
-
<async> getDirs(dir)
-
Return an array of object contain
the plugin and the dir found
Parameters:
| Name |
Type |
Description |
dir |
|
plugin dir key |
Returns:
-
Type
-
Array
-
<async> loadPlugin(name, pluginPath)
-
Parameters:
| Name |
Type |
Description |
name |
*
|
|
pluginPath |
*
|
|
-
<async> loadPlugins(plugins, pluginsPath)
-
Load plugins in the plugin array
and in the pluginsPath directory
Parameters:
| Name |
Type |
Description |
plugins |
Array
|
array of plugin names |
pluginsPath |
String
|
plugins directory |
-
<async> readFiles(dir)
-
read plugins files
return then in an object indexed by file path
Parameters:
| Name |
Type |
Description |
dir |
|
|