Skip to content

Latest commit

 

History

History
150 lines (92 loc) · 3.41 KB

README.md

File metadata and controls

150 lines (92 loc) · 3.41 KB

pon-task-init

Build Status npm Version JS Standard

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.

Links