How to use the @canopycanopycanopy/b-ber-logger.registerSequence function in @canopycanopycanopy/b-ber-logger

To help you get started, we’ve selected a few @canopycanopycanopy/b-ber-logger 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)
    })
  }

  const projectPath = path.resolve(state.srcDir)
  const files = [
    ...Project.javascripts(projectPath),
    ...Project.stylesheets(projectPath),

@canopycanopycanopy/b-ber-logger

`b-ber-logger` is b-ber's console logger.

GPL-3.0-or-later
Latest version published 3 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages