apeman-task-kill
apeman task to kill process after task done.
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-task-kill 
SYNC missed versions from official npm registry.

apeman-task-kill

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to kill process after task done.

Installation

$ npm install apeman-task-kill --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This is an example Apemanfile to use apeman-task-kill */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    'process:kill': require('apeman-task-kill')({
      // Options
    }),
    // Kill process after something
    'do-something-and-kill': [
      'some-process-keeping-task',
      'process:kill'
    ]
  }
}

Then,

$ apeman task process:kill

Signature

apemanTaskKill(options) -> function

apeman task to kill process after task done.

Args
Name Type Default Description
options object Optional settings.
options.delay number 100 Delay to kill.

License

This software is released under the MIT License.

Links

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
  • co ^4.6.0
Dev Dependencies (10)

Copyright 2014 - 2017 © taobao.org |