README
pon-task-map
Pon task to extract map files
Installation
$ npm install pon-task-map --save
Usage
'use strict'
const pon = require('pon')
const map = require('pon-task-map')
async function tryExample () {
let run = pon({
'ui:map': map('public/js', 'public/js', {
pattern: '*.js'
})
})
run('ui:map')
}
tryExample()
Signatures
define(srcDir, destDir, options) -> function
Define task
Param | type | Description |
---|---|---|
srcDir | string | Source directory name |
destDir | string | Destination directory name |
options.pattern | string|string[] | File name pattern |
options | Object | Optional settings |
options.watchDelay | number | Delay after watch |
License
This software is released under the Apache-2.0 License.