text: import write from './write';
  import render from './render';
  import formatCode from './formatCode';
  
  /**
   * generate config
   *
   * @param {String} src source path
   * @param {String} dest destination path
   * @param {OPTIONS} options command line options
   * @return {Promise}
   */
  export default async function generateConfig(src = '', dest = '', options = {}) {
    if (typeof src !== 'string') {
      throw new TypeError('Argument "src" is not string.');
    }
    if (typeof dest !== 'string') {
      throw new TypeError('Argument "dest" is not string.');
    }
  
    const {verbose} = options;
    const output = await render(`${src}/config.js.hbs`, options);
    const formated = await formatCode(output);
  
    await write(formated, `${dest}/config.js`, {verbose});
  }
  