Skip to content
Pon task to call another task
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
doc
example
lib
test
.LICENSE.bud
.README.md.bud
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

pon-task-task

Build Status npm Version JS Standard

Pon task to call another task

Installation

$ npm install pon-task-task --save

Usage

'use strict'

const pon = require('pon')
const task = require('pon-task-task')

;(async () => {
  const run = pon({
    doSomething: () => { /* ... */},
    callAnother: [task('doSomething')]
  })

  run('callAnother')
}).catch((err) => console.error(err))

Signatures

define(names, options) -> function

Define task

Param type Description
names string|string[] Name of pon tasks to call
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

You can’t perform that action at this time.