code: function compileJavascript(filePath) {
    const jsPath = filePath || 'src';
    const babelPath = which.sync('babel');
    const outFile =
      jsPath.endsWith('.js')
        ? `--out-file ${jsPath.replace('src/', 'dist/')}`
        : `-d dist`;
    console.log(chalk.cyan(`compling javascript ${chalk.magenta(jsPath)}`));
    cp.execSync(`${babelPath} ${jsPath} ${outFile} --ignore test.js`, execArgs);
    console.log(chalk.green('babel compilation complete'));
  }
docs: Compiles Javascript, using Babel, to a consistent runtime that isn't dependent on a JSX parser
  or future ECMA targets.
  
  @param  {String} [jsPath=src] Path to the file(s) to compile. If a directory is specified, all
  *.js files in that directory are compiled.
  @return {undefined}