code: function run(command) {
    const script = findScript(command);
    const config = findConfig();
  
    if (!script) {
      console.error(`ERROR: File not found: scripts/${command}.js`);
      process.exit(1);
    }
  
    const start = new Date();
    console.log(`Starting '${chalk.bold.gray(command)}'...`);
  
    return Promise.resolve().then(() => require(script)(config)).then(() => {
      console.log(
        `Finished '${chalk.bold.gray(command)}' after ` +
        `${chalk.bold(new Date().getTime() - start.getTime())}ms`
      );
    }, err => console.error(err.stack));
  }
docs: Find and execute a script. For example: run('clean').then(() => console.log('Done!');
  
  Starting 'clean'...
  Finished 'clean' after 45ms
  Done!