Basic task set for pon
$ npm install pon-task-basic --save
'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()
Pon task to define cron
Param | type | Description |
---|---|---|
when | string | Cron time |
task | string|function | Task to run |
options | Object | Command |
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 |
pon task to install package
Param | type | Description |
---|---|---|
options | Object | Optional settings |
define sub task
Param | type | Description |
---|---|---|
ponfile | string |
This software is released under the Apache-2.0 License.