Add more docs to plugins loader

This commit is contained in:
Chi Vinh Le
2017-04-03 14:48:16 +07:00
parent 24aba5084b
commit 37230ce7fa
@@ -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');