async function build() {
  await run(clean);
  await run(copy);
  await run(bundle);

  if (process.argv.includes('--static')) {
    await run(render);
  }

  if (process.argv.includes('--docker')) {
    cp.spawnSync('docker', ['build', '-t', pkg.name, '.'], {
      stdio: 'inherit',
    });
  }
}
async function build() {
  await run(clean);
  await run(copy);
  await run(bundle);

  if (process.argv.includes('--static')) {
    await run(render);
  }

  if (process.argv.includes('--docker')) {
    cp.spawnSync('docker', ['build', '-t', pkg.name, '.'], {
      stdio: 'inherit',
    });
  }
}
async function build ( ) { await run ( clean ) ; await run ( copy ) ; await run ( bundle ) ; if ( process . argv . includes ( '--static' ) ) { await run ( render ) ; } if ( process . argv . includes ( '--docker' ) ) { cp . spawnSync ( 'docker' , [ 'build' , '-t' , pkg . name , '.' ] , { stdio : 'inherit' , } ) ; } }
Compiles the project from source files into a distributable
format and copies it to the output (build) folder.
Compiles the project from source files into a distributable format and copies it to the output ( build ) folder .
Build the cluster