async function main() {
  const app = new GhPagesApp({
    name: 'treemap',
    appDir: `${LH_ROOT}/treemap/app`,
    html: {path: 'index.html'},
    stylesheets: [
      {path: 'styles/*'},
    ],
    javascripts: [
      buildStrings(),
      {path: require.resolve('idb-keyval/dist/idb-keyval-min.js')},
      {path: require.resolve('event-target-shim/umd')},
      {path: require.resolve('webtreemap-cdt')},
      {path: require.resolve('pako/dist/pako_inflate.js')},
      {path: 'src/main.js', esbuild: true},
    ],
    assets: [
      {path: 'images/**/*', destDir: 'images'},
      {path: 'debug.json'},
    ],
  });

  await app.build();

  const argv = process.argv.slice(2);
  if (argv.includes('--deploy')) {
    await app.deploy();
  }
}
Build treemap app, optionally deploying to gh-pages if `--deploy` flag was set.