Enable customized feature loading source, from npm modules or other location
- Source:
- features/featureRegistry.js
Example
featureRegistry: {
"feature1": "feature1 file path", // feature1 = require("feature1 file path");
"feature2": [ "feature2 file path", "object path" ] // feature2 = Util.getValueByPath(require("feature2 file path"), "object path")
}
Members
-
<static> type :string
-
This feature is loaded at configuration stage
Type:
- string
- Source:
- features/featureRegistry.js
Methods
-
<static> load_(app, registry)
-
Load the feature
Parameters:
Name Type Description appCliApp The cli app module object
registryobject Feature loading source registry
- Source:
- features/featureRegistry.js
Returns:
- Type
- Promise.<*>