new URLBuilder(configParser)
Creates an instance of URLBuilder class.
Parameters:
Name | Type | Description |
---|---|---|
configParser |
object | instance of ConfigParser object. |
- Source:
Methods
-
<protected> _getModulePath(module) → {string}
-
Returns the path for a module. If module has property path, it will be returned directly. Otherwise, the name of module will be used and extension .js will be added to module name if omitted.
Parameters:
Name Type Description module
object The module which path should be returned. - Source:
Returns:
Module path.- Type
- string
-
build(modules) → {array}
-
Returns a list of URLs from provided list of modules.
Parameters:
Name Type Description modules
array List of modules for which URLs should be created. - Source:
Returns:
List of URLs.- Type
- array