code: function() {
          var self = this;
  
          return new Promise(function(resolve, reject) {
              var config = {};
  
              for (var i = 0; i < self._modules.length; i++) {
                  var module = self._modules[i];
  
                  var storedModule = config[module.name] = {
                      dependencies: module.dependencies
                  };
  
                  if (module.condition) {
                      storedModule.condition = module.condition;
                  }
  
                  if (!self._options.ignorePath) {
                      if (module.fullPath) {
                          storedModule.fullPath = upath.toUnix(module.fullPath);
                      } else {
                          var dirname = path.dirname(module.name);
  
                          var modulePath = module.path || (dirname !== '.' ? dirname + '/' + module.file : module.file);
  
                          storedModule.path = upath.toUnix(modulePath);
                      }
                  }
              }
  
              resolve(config);
          });
      }
docs: Generates a config object from all found modules.
  
  @method _generateConfig
  @protected
  @return {Promise} Returns a Promise which will be resolved with the generated configuration