ape-tasking

ape framework module for tasks

Usage no npm install needed!

<script type="module">
  import apeTasking from 'https://cdn.skypack.dev/ape-tasking';
</script>

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.

Links