1.0.2 • Published 6 years ago
pon-task-init v1.0.2
pon-task-init
Pon task to initialize project
Installation
$ npm install pon-task-init --save
Usage
'use strict'
const pon = require('pon')
const ponTaskInit = require('pon-task-init')
;(async () => {
let run = pon({
'init': ponTaskInit({force: false})
})
run('init')
}).catch((err) => console.error(err))
Signatures
define(options) -> function
Define task
Param | type | Description |
---|---|---|
options | Object | Optional settings |
options.force | boolean | Force to write |
options.cwd | string | Target directory name |
tmpl(config) -> string
Ponfile template
Param | type | Description |
---|---|---|
config | Object |
License
This software is released under the Apache-2.0 License.