function build()

in scripts/build.js [163:178]


function build() {
  const args = process.argv.slice(2);
  if (args.length === 0) {
    // Build all custom series
    const dirs = fs.readdirSync(path.join(__dirname, '../custom-series'));
    dirs.forEach((name, index) => {
      console.log(chalk.cyan(`Running ${name}: (${index + 1}/${dirs.length})`));
      buildCustomSeries(name);
      console.log(`---------------\n`);
    });
  } else {
    // Build custom series from args
    args.forEach(buildCustomSeries);
  }
  console.log(chalk.green('Build successfully.'));
}