[resourcePathsFrom description]
the directory that contains the default MMIR direcotry structure containing (possibly) config, languages, controllers, helpers etc.
options for parsing the directories:
parseOptions.addModuleExport: {Boolean} use the addModuleExport option for controllers, helpers, and models
parseOptions.exclude: {Array
the AppConfig with the 'path' option set for the corresponding resource type, so that the corresponding utils/loaders will the the resources from that path
apply the "global" options from options
or default values to the entries
from settingsList
if its corresponding options-field is not explicitly specified.
parse for JSON settings files
load settings file NOTE: if updating s.value with the loaded data, need to update s.include and s.file accordingly!
the module ID for require'ing the view
HELPER: do set the field in options, if it is not explicitly specified, either to the globally specified value, or the default/fallback value for the field
the field name for the option
the element's options (e.g. GrammarOption)
the global options for that type of element (e.g. GrammarOptions)
the default value for the option/field (in case neither opt nor globalOpt for that field is defined)
check if plugin
is already contained in pluginList
NOTE: uses deep comparision, i.e. entries with same id (plugin.id) are considered deferent, if their (other) properties differ (even if the IDs match).
the plugin
the list of plugins to check
if true
, makes deep comparision, instead of comparing the IDs
false
if plugin
is NOT contained in pluginList
, otherwise the duplicate entry from pluginList
HELPER create default for settings type
the type of settings object, e.g. "speech" or "configuration"
if more than 1 settings-entry for this type can exist, its ID
the (default) settings value for id
create config for mmir resources:
the resource config object
HELPER create a non-file settings entry (i.e. not loaded from a file)
the type of settings object, e.g. "speech" or "configuration"
the actual settings-data (JSON-like object)
the settings-entry
check if settings entry should be excluded
TRUE if settings should be excluded
read settings file as JSON or "plain" CommonJS module and return PlainObject
the filePath
| Promise<{[field: string]: any}>} the settings object (or if async, a Promise that resolves to the settings object)
Generated using TypeDoc
HELPER for merging the results of resourcePathsFrom() with the user-supplied AppConfig, without overwritting user-set options