code: function generatePage(name, options) {
    const config = Config(options);
  
    let componentName = name.substr(name.lastIndexOf('/') + 1).replace(/^\w/, (w) => w.toUpperCase());
    let className = name.replace(/\//g, '-');
    let fileBase = path.join(config.srcDir, 'pages', name);
  
    mkdirp.sync(path.dirname(fileBase));
  
    ['.js', '.xml', (options.scss ? '.scss' : '.less'), '.test.js'].forEach((ext) => {
      let target = fileBase + ext;
      if (utils.isFile(target)) {
        console.error(`组件创建失败："${path.relative(config.workDir, target)}" 已经存在`.red);
        process.exit();
      }
      utils.copyAndReplace(path.join(__dirname, '../templates/component/component' + ext), target, {
        COMPONENT_NAME: componentName,
        CLASS_NAME: className
      });
    });
  }
docs: 创建页面
  @param {string} name
  @param {Object} options