diff --git a/client/coral-framework/loaders/plugins-loader.js b/client/coral-framework/loaders/plugins-loader.js index e264fb628..f1705933f 100644 --- a/client/coral-framework/loaders/plugins-loader.js +++ b/client/coral-framework/loaders/plugins-loader.js @@ -1,3 +1,14 @@ +/** + * Executes `source` to retrieve plugins configuration + * and loads all modules of specified plugins. + * + * Outputs a module that looks like the following: + * + * module.exports.actions = [{plugin: string, module: callback}, ...] + * module.exports.reducer = [{plugin: string, module: callback}, ...] + * [...] + * + */ const {stripIndent} = require('common-tags'); const fs = require('fs'); const path = require('path');