code: function getConf (app, mod) {
    var appConf = null;
    var moduleConf = null;
    var buildType = '';
  
    app = app ? app : '';
    mod = (mod && typeof mod === 'string') ? mod : '';
  
    var appPath = path.join(rootPath, app);
    var appConfPath = path.join(appPath, 'app-conf.js');
    var modulePath = path.join(rootPath, app, mod);
    var moduleConfPath = path.join(modulePath, 'module-conf.js');
  
    if (Util.existsSync('app-conf.js')) {
      appPath = rootPath;
      appConfPath = path.join(appPath, 'app-conf.js');
    }
  
    if (Util.existsSync('module-conf.js')) {
      modulePath = rootPath;
      moduleConfPath = path.join(modulePath, 'module-conf.js');
    }
  
    if (Util.existsSync(appConfPath)) {
      appConf = require(appConfPath);
      if (mod && mod.length > 0) {
        modulePath = path.join(appPath, mod);
        moduleConfPath = path.join(modulePath, 'module-conf.js');
        if (Util.existsSync(moduleConfPath)) {
          try {
            moduleConf = require(moduleConfPath);
          } catch (err) {
            throw err;
          }
        } else {
          throw new Error('模块不存在');
        }
      }
      buildType = BUILD_APP;
    } else if (Util.existsSync(moduleConfPath)) {
      moduleConf = require(moduleConfPath);
      appPath = path.resolve(modulePath, '..');
      appConfPath = path.join(appPath, 'app-conf.js');
      appConf = require(appConfPath);
      buildType = BUILD_MODULE;
    } else {
      appPath = null;
      modulePath = null;
      buildType = BUILD_NONE;
    }
  
    return {
      appConf: appConf,
      moduleConf: moduleConf,
      buildType: buildType,
      appPath: appPath,
      modulePath: modulePath
    };
  }
docs: 获取一些配置信息