code: async function copyOthers(dirPath) {
    // src 目录
    const srcFiles = await _.globSync('src/**/*', globOptions)
  
    // test 目录
    const testFiles = await _.globSync('test/**/*', globOptions)
  
    // tools 目录
    const toolsFiles = await _.globSync('tools/**/*', globOptions)
  
    // 其他根目录下的文件，如 .gitignore 等
    let rootFiles = await _.globSync('*', globOptions)
    rootFiles = rootFiles.filter(toolsFile => toolsFile.slice(-12) !== 'package.json' && toolsFile.slice(-7) !== 'LICENSE')
  
    const allFiles = [].concat(srcFiles, testFiles, toolsFiles, rootFiles)
    for (let i = 0, len = allFiles.length; i < len; i++) {
      const filePath = allFiles[i]
      // eslint-disable-next-line no-await-in-loop
      await _.copyFile(path.join(templateProject, filePath), path.join(dirPath, filePath))
    }
  }
docs: 拷贝其他文件