code: function getAllPackages () {
    const packages = [
      // main package
      {
        entry: config.entry,
        jsName: 'index',
        cssName: 'style',
        globName: config.fullname,
        amdName: config.name,
      },
    ]
  
    return Promise.all([
      packagesFromPath(utils.resolve('src/component'), utils.resolve('src/component')),
      packagesFromPath(utils.resolve('src/mixin'), srcPath),
      packagesFromPath(utils.resolve('src/ol-ext'), srcPath),
      packagesFromPath(utils.resolve('src/rx-ext'), srcPath),
      packagesFromPath(utils.resolve('src/util'), srcPath),
    ]).then(otherPackages => {
      return packages.concat(otherPackages.reduce((all, packages) => all.concat(packages), []))
    })
  }
docs: ***************************************************** /* HELPERS *****************************************************