src/PluginEngine.js
function(plugins, pluginBase){
        var _this = this;
        
        if (typeof pluginBase === 'string') {
            _pluginBase = pluginBase;
        }
        plugins.forEach(function(plugin, index){
            var name;
            var path;
            if (typeof plugin === 'string'){
                name = plugin;
            } else {
                name = plugin.name;
                path = plugin.path;
            }
            _this.register(name, plugin);
        });
    }
function(plugins, pluginBase){
        var _this = this;
        
        if (typeof pluginBase === 'string') {
            _pluginBase = pluginBase;
        }
        plugins.forEach(function(plugin, index){
            var name;
            var path;
            if (typeof plugin === 'string'){
                name = plugin;
            } else {
                name = plugin.name;
                path = plugin.path;
            }
            _this.register(name, plugin);
        });
    }
function ( plugins , pluginBase ) { var _this = this ; if ( typeof pluginBase === 'string' ) { _pluginBase = pluginBase ; } plugins . forEach ( function ( plugin , index ) { var name ; var path ; if ( typeof plugin === 'string' ) { name = plugin ; } else { name = plugin . name ; path = plugin . path ; } _this . register ( name , plugin ) ; } ) ; }
initial the plugins by plugin's config
@param  {Object} plugins plugin's config
@return {Promise}
initial the plugins by plugin s config