How to use the @s-ui/helpers/cli.parallelSpawn function in @s-ui/helpers

To help you get started, we’ve selected a few @s-ui/helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SUI-Components / sui / packages / sui-mono / bin / sui-mono-run-parallel.js View on Github external
program
  .on('--help', () => {
    console.log('  Description:')
    console.log('')
    console.log('    Runs the given command on all the packages')
    console.log('    Commands are run in parallel, with colorless output')
    console.log('')
    console.log('  Examples:')
    console.log('')
    console.log('    $ sui-mono run-parallel npm i')
    console.log('    $ sui-mono run-parallel --help')
    console.log('')
  })
  .parse(process.argv)

parallelSpawn(getAllTaskArrays())
  .then(code => process.exit(code))
  .catch(code => process.exit(code))
github SUI-Components / sui / packages / sui-dashboard / bin / sui-dashboard-components.js View on Github external
;(async () => {
  await parallelSpawn(cloneSUIComponentsCommand)
  await parallelSpawn(cloneCommands)
  await parallelSpawn(installCommands)
  const statsComponents = await stats({repositories, root: WORK_DIRECTORY})

  console.log(statsComponents)
})()
github SUI-Components / sui / packages / sui-dashboard / bin / sui-dashboard-components.js View on Github external
;(async () => {
  await parallelSpawn(cloneSUIComponentsCommand)
  await parallelSpawn(cloneCommands)
  await parallelSpawn(installCommands)
  const statsComponents = await stats({repositories, root: WORK_DIRECTORY})

  console.log(statsComponents)
})()
github SUI-Components / sui / packages / sui-dashboard / bin / sui-dashboard-components.js View on Github external
;(async () => {
  await parallelSpawn(cloneSUIComponentsCommand)
  await parallelSpawn(cloneCommands)
  await parallelSpawn(installCommands)
  const statsComponents = await stats({repositories, root: WORK_DIRECTORY})

  console.log(statsComponents)
})()