code: function writeOut(dir, subdir) {
    return fs.writeFileSync(
      p.join(dir, `${subdir}.js`),
      globby.sync(p.join(dir, subdir, `*.js`))
        .map(file => file.replace(dir, '.'))
        .map(file => file.replace(`.js`, ''))
        .map(file => `import '${file}'`)
        .join('\n')
        .concat('\n')
    )
  }
docs: ---------------------------------------------------------- logic ---------------------------------------------------------- 
  @func writeOut
  @desc generate import statements and write to file
  @param {string} dir - top level directory containing dirs to index
  @param {string} subdir - directory to index contents of
  @returns {undefined}