release.js
/**
 * @return {!Array<string>} all entrypoint HTML files to be built for this release
 */
@return {!Array} all entrypoint HTML files to be built for this release
@return { !Array } all entrypoint HTML files to be built for this release
async function findStaticHtml() {
  let htmlFiles;
  if (yargs.scene.length) {
    const globArg = yargs.scene.map((scene) => path.join('static/scenes', scene, '**/index.html'));
    htmlFiles = globAll(...globArg);
  } else {
    htmlFiles = globAll('static/**/index.html');
  }
  htmlFiles = htmlFiles.filter((raw) => {
    const sceneMatch = raw.match(/^static\/scenes\/(.*?)\//);
    return !(sceneMatch && DISABLED_SCENES.includes(sceneMatch[1]));
  });
  return htmlFiles;
}
async function findStaticHtml ( ) { let htmlFiles ; if ( yargs . scene . length ) { const globArg = yargs . scene . map ( ( scene ) => path . join ( 'static/scenes' , scene , '**/index.html' ) ) ; htmlFiles = globAll ( ... globArg ) ; } else { htmlFiles = globAll ( 'static/**/index.html' ) ; } htmlFiles = htmlFiles . filter ( ( raw ) => { const sceneMatch = raw . match ( / ^static\/scenes\/(.*?)\/ / ) ; return ! ( sceneMatch && DISABLED_SCENES . includes ( sceneMatch [ 1 ] ) ) ; } ) ; return htmlFiles ; }
@return {!Array<string>} all entrypoint HTML files to be built for this release
@return { !Array<string > } all entrypoint HTML files to be built for this release