Skip to content
Basic task set for pon
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
misc/mocks
test
.LICENSE.bud
.README.md.bud
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

pon-task-basic

Build Status npm Version JS Standard

Basic task set for pon

Installation

$ npm install pon-task-basic --save

Usage

'use strict'

const pon = require('pon')
const {fs} = require('pon-task-basic')
const {mkdir} = fs

async function tryExample () {
  const run = pon({
    'fs:mkdir': mkdir(['lib', 'test', 'tmp']),
  })

  run('test:*')
}

tryExample()

Signatures

cron(when, task, options) -> function

Pon task to define cron

Param type Description
when string Cron time
task string|function Task to run
options Object Command

define(options) -> function

Define task

Param type Description
options Object Optional settings
options.mocha Array Args for pon-task-mocha
options.fmtjson Array Args for pon-fmtjson-task
options.command Array Args for pon-command-task
options.env Array Args for pon-env-task
options.task Array Args for pon-task-task

install(options) -> function

pon task to install package

Param type Description
options Object Optional settings

sub(ponfile) -> function

define sub task

Param type Description
ponfile string

License

This software is released under the Apache-2.0 License.

Links

You can’t perform that action at this time.