packages/themes/index.js
function getThemeFiles({ brand, affiliate }) {
  return [
    path.join(__dirname, '/themes/_default.yaml'),
    path.join(__dirname, `/themes/${brand}/_default.yaml`),
    path.join(__dirname, `/themes/${brand}/${affiliate.toUpperCase()}/_default.yaml`)
  ].filter(fs.existsSync);
}
function getThemeFiles({ brand, affiliate }) {
  return [
    path.join(__dirname, '/themes/_default.yaml'),
    path.join(__dirname, `/themes/${brand}/_default.yaml`),
    path.join(__dirname, `/themes/${brand}/${affiliate.toUpperCase()}/_default.yaml`)
  ].filter(fs.existsSync);
}
function getThemeFiles ( { brand , affiliate } ) { return [ path . join ( __dirname , '/themes/_default.yaml' ) , path . join ( __dirname , ` ${ brand } ` ) , path . join ( __dirname , ` ${ brand } ${ affiliate . toUpperCase ( ) } ` ) ] . filter ( fs . existsSync ) ; }
Get theme files in YAML format
@param  {Object} options
@param  {string} options.brand - cheaptickets
@param  {string} options.affiliate - NL
@return {String}
Get theme files in YAML format