ape-tasking
v4.0.12
Published
ape framework module for tasks
Downloads
2,768
Readme
ape-tasking
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.