ape-tasking
ape framework module for tasks
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install ape-tasking 
SYNC missed versions from official npm registry.

ape-tasking

Build Status Code Climate Code Coverage Dependency 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

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 404
Last Day 0
Last Week 0
Last Month 3
Dependencies (6)
Dev Dependencies (9)

Copyright 2014 - 2017 © taobao.org |