cli/e2e.js
function spawnBuild(argv, skyPagesConfig, webpack) {

  if (argv.build === false) {
    logger.info('Skipping build step');

    const file = 'dist/metadata.json';
    if (!fs.existsSync(file)) {
      logger.info(`Unable to skip build step.  "${file}" not found.`);
    } else {
      return Promise.resolve({
        metadata: fs.readJsonSync(file)
      });
    }
  }

  return build(argv, skyPagesConfig, webpack)
    .then(stats => stats.toJson().chunks);
}
function spawnBuild(argv, skyPagesConfig, webpack) {

  if (argv.build === false) {
    logger.info('Skipping build step');

    const file = 'dist/metadata.json';
    if (!fs.existsSync(file)) {
      logger.info(`Unable to skip build step.  "${file}" not found.`);
    } else {
      return Promise.resolve({
        metadata: fs.readJsonSync(file)
      });
    }
  }

  return build(argv, skyPagesConfig, webpack)
    .then(stats => stats.toJson().chunks);
}
function spawnBuild ( argv , skyPagesConfig , webpack ) { if ( argv . build === false ) { logger . info ( 'Skipping build step' ) ; const file = 'dist/metadata.json' ; if ( ! fs . existsSync ( file ) ) { logger . info ( ` ${ file } ` ) ; } else { return Promise . resolve ( { metadata : fs . readJsonSync ( file ) } ) ; } } return build ( argv , skyPagesConfig , webpack ) . then ( stats => stats . toJson ( ) . chunks ) ; }
Spawns the build process.  Captures the config used.
Spawns the build process . Captures the config used .