How to use @canopycanopycanopy/b-ber-shapes-sequences - 1 common examples

To help you get started, we’ve selected a few @canopycanopycanopy/b-ber-shapes-sequences 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 triplecanopy / b-ber / packages / b-ber-cli / src / commands / build.js View on Github external
const handler = argv => {
  process.env.NODE_ENV = process.env.NODE_ENV || 'development'

  const sequence = createBuildSequence(argv)
  const subSequence = sequence.reduce((a, c) => a.concat(...sequences[c]), [])

  state.update('sequence', subSequence)
  log.registerSequence(state, command, subSequence)

  const run = buildTasks => {
    const build = buildTasks.shift()

    state.reset()
    state.update('build', build)

    return serialize(sequences[build]).then(() => {
      if (buildTasks.length) run(buildTasks)
    })
  }

@canopycanopycanopy/b-ber-shapes-sequences

The `b-ber-shapes-sequences` package contains sequential lists of tasks for each of b-ber's builds.

GPL-3.0-or-later
Latest version published 16 days ago

Package Health Score

69 / 100
Full package analysis

Popular @canopycanopycanopy/b-ber-shapes-sequences functions

Similar packages