lib/make/config.js
/**
 * Provide the user configuration extract from all the relevant files
 *
 * @returns {Object}
 */
Provide the user configuration extract from all the relevant files
@returns {Object}
Provide the user configuration extract from all the relevant files @returns { Object }
async function config () {
  process.logger.debug.sep()
  process.logger.debug.info(_`Configuration:`)
  const files = [
    DEFAULT_CONFIG,
    ...(await getYamlFiles(process.env.STUFF_FOLDER_THEME))
  ].map(readTextFile)
  const data = (await Promise.all(files))
    .map(txt => YAML.parse(txt, YAML_PARSE_CONFIG))
  const configuration = combine({}, ...data, await metadata())
  process.logger.debug(configuration)
  return configuration
}
async function config ( ) { process . logger . debug . sep ( ) process . logger . debug . info ( _ ` ` ) const files = [ DEFAULT_CONFIG , ... ( await getYamlFiles ( process . env . STUFF_FOLDER_THEME ) ) ] . map ( readTextFile ) const data = ( await Promise . all ( files ) ) . map ( txt => YAML . parse ( txt , YAML_PARSE_CONFIG ) ) const configuration = combine ( { } , ... data , await metadata ( ) ) process . logger . debug ( configuration ) return configuration }
Provide the user configuration extract from all the relevant files
 @returns {Object}
Provide the user configuration extract from all the relevant files @returns { Object }
// User metadata always overwrite theme metadata