src/index.js
async function hela (opts) {
  const options = Object.assign(
    { argv: {}, prefix: 'hela-config-', stdio: 'inherit' },
    opts
  )

  if (options.tasks || (options.presets || options.extends)) {
    return presetResolver(options)
  }

  return prettyConfig('hela', options).then((config) => {
    if (!config) {
      throw new Error('hela: no config')
    }

    return presetResolver(Object.assign({}, config, options))
  })
}
async function hela (opts) {
  const options = Object.assign(
    { argv: {}, prefix: 'hela-config-', stdio: 'inherit' },
    opts
  )

  if (options.tasks || (options.presets || options.extends)) {
    return presetResolver(options)
  }

  return prettyConfig('hela', options).then((config) => {
    if (!config) {
      throw new Error('hela: no config')
    }

    return presetResolver(Object.assign({}, config, options))
  })
}
> Controls, merges and resolves all tasks from config files
> and passed through `opts.tasks`.
>
> All `opts` are passed to [execa-pro][] and to [execa][],
> so you can pass `opts.stdio: 'inherit'` for example
> to output the result of each command in the console, useful for things like prompt inputs.
> Resolving works recursively and support ESLint style presets through
> the `opts.extends`. The `extends` property can be `string` (the name of the preset,
> prefixed with `hela-config-`),  a function (that is passed with `{ extends, tasks }` object)
> or an object containing another `extends` and/or `tasks` properties.
>
> Configuration is handled by [@tunnckocore/pretty-config](https://github.com/tunnckoCore/pretty-config)
> which is pretty similar to the [cosmiconfig][] package and so the config
> files lookup order is:
> - `.helarc.{json,yaml,yml,js}`
> - `hela.config.js`
> - `.hela.config.js`
> - `.helarc` - YAML or JSON syntax
> - `package.json` - one of `hela`, `helaConfig` or `config.hela` fields

@name    .hela
@param   {Object} `opts` requires to have at least `tasks` ot `extends` properties
@returns {Promise} so you can use `async/await` mechanism
@api public