Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ape-tasking

ape-repo6.8kMIT4.0.12

ape framework module for tasks

ape, tasking

readme

ape-tasking

Build Status npm Version JS Standard

ape framework module for tasks

Usage

Run Tasks

.runTasks(taskName, tasks, exitWhenDone)

#!/usr/bin/env node

'use strict'

const apeTasking = require('ape-tasking')

// Run tasks
apeTasking.runTasks('myCustomTask', [
  // Run callback base task
  (callback) => {
    /* ... */
    callback(null) // Pass error if failed.
  },
  // Run promise base task
  () => new Promise((resolve, reject) => {
    /* ... */
    resolve()
  })
], true)

License

This software is released under the MIT License.