packages/raven-js/scripts/generate-plugin-combinations.js
function generate(plugins, dest) {
  const pluginNames = plugins.map((plugin) => {
    return path.basename(plugin, '.js');
  });

  const pluginCombinations = combine(pluginNames);

  pluginCombinations.forEach((pluginCombination) => {
    fs.writeFileSync(
      path.resolve(dest, `${pluginCombination.join(',')}.js`),
      template(pluginCombination),
    );
  });
}
function generate(plugins, dest) {
  const pluginNames = plugins.map((plugin) => {
    return path.basename(plugin, '.js');
  });

  const pluginCombinations = combine(pluginNames);

  pluginCombinations.forEach((pluginCombination) => {
    fs.writeFileSync(
      path.resolve(dest, `${pluginCombination.join(',')}.js`),
      template(pluginCombination),
    );
  });
}
function generate ( plugins , dest ) { const pluginNames = plugins . map ( ( plugin ) => { return path . basename ( plugin , '.js' ) ; } ) ; const pluginCombinations = combine ( pluginNames ) ; pluginCombinations . forEach ( ( pluginCombination ) => { fs . writeFileSync ( path . resolve ( dest , ` ${ pluginCombination . join ( ',' ) } ` ) , template ( pluginCombination ) , ) ; } ) ; }
Generate all plugin combinations.

@param {array} plugins
@param {string} dest
Generate all plugin combinations .