function generateComponentName(fileName) {
  const bareName = fileName.replace(/\.html$/, '').replace(/[._]/g, '');
  return bareName.charAt(0).toUpperCase() + bareName.substr(1) + 'Component';
}
function generateComponentName(fileName) {
  const bareName = fileName.replace(/\.html$/, '').replace(/[._]/g, '');
  return bareName.charAt(0).toUpperCase() + bareName.substr(1) + 'Component';
}
function generateComponentName ( fileName ) { const bareName = fileName . replace ( / \.html$ / , '' ) . replace ( / [._] / g , '' ) ; return bareName . charAt ( 0 ) . toUpperCase ( ) + bareName . substr ( 1 ) + 'Component' ; }
Generate component name from HTML file name
It preserves all except for _ and . characters that get added by typedoc
The generated named is still weird, but it doesn't matter
Generate component name from HTML file name It preserves all except for _ and . characters that get added by typedoc The generated named is still weird but it doesn t matter