Description

Repository type handlers for the PluginLoader.

TODO documentation

Details

Methods


<static> plain( repositoryConfig, pluginName ) → {string}

Plain repository handler.

Description

Plain repository handler.

Parameters
Name Type Description
repositoryConfig Object

Repository configuration object.

Name Type Description
suffix string

File name suffix, defaults to .js.

url string

Base repository URL.

pluginName string

Plugin name.

Returns

Plugin URL.

Details

<static> github( repositoryConfig, pluginName ) → {string}

GitHub repository handler.

Description

GitHub repository handler.

Parameters
Name Type Description
repositoryConfig Object

Repository configuration object.

Name Type Description
repository string

GitHub repository, e.g. XHerna/fm-publicbot.

branch string

Repository branch, defaults to master.

path string

Path within the repository, defaults to src.

suffix string

File name suffix, defaults to .js.

pluginName string

Plugin name.

Returns

Plugin URL.

Details