Skip to content

realglobe-Inc/pon-task-es

Repository files navigation

pon-task-es

Build Status npm Version JS Standard

Compile Javascript with es

Installation

$ npm install pon-task-es --save

Usage

'use strict'

const pon = require('pon')
const ponTaskEs = require('pon-task-es')

;(async () => {
  let run = pon({
    'js:compile': ponTaskEs(
      'client/src',
      'client/shim'
    )
  })

  run('js:compile')
}).catch((err) => console.error(err))

Signatures

define(srcDir, destDir, options) -> function

Define task

Param type Description
srcDir string Source directory name
destDir string Destination directory name
options Object Optional settings
options.pattern string|string[] File name pattern
options.presets string[] Babel preset names
options.plugins string[] Babel plugin names
options.watchTargets string[] Additional watch target filenames
options.watchDelay number Delay after watch

License

This software is released under the Apache-2.0 License.

Links