function buildCustomSeries()

in scripts/build.js [47:65]


function buildCustomSeries(dirName) {
  const seriesPath = path.join(__dirname, '../custom-series', dirName);
  if (fs.statSync(seriesPath).isDirectory() === false) {
    console.log(chalk.yellow(`${dirName} is not a directory. Ignored.`));
    return;
  }
  if (!fs.existsSync(seriesPath)) {
    console.error(chalk.red(`Custom series ${dirName} does not exist`));
    return;
  }

  beforeBuild(dirName);

  console.log(`Building custom series ${dirName}...`);

  compileTypeScript(seriesPath, dirName);
  bundleWithRollup(seriesPath, dirName);
  minifyWithTerser(seriesPath, dirName);
}