2.0.3 • Published 9 years ago

apeman-task-closurecompiler v2.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

apeman-task-closurecompiler

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to run google-closure-compiler

Installation

$ npm install apeman-task-closurecompiler --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This is an example Apemanfile to use apeman-task-closurecompiler */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    // Define your own task.
    'js:optimize': require('apeman-task-closurecompiler')(
      'public/bundle.js', //Src
      'public/bundle.js', //Dest
      {
        //Options
        language_in: 'ECMASCRIPT6',
        language_out: 'ECMASCRIPT5'
      }
    )
  }
}

Then,

$ apeman task js:optimize

Signature

apemanTaskClosureCompiler(src, dest, options) -> function

apeman task to run google-closure-compiler

Args
NameTypeDefaultDescription
srcstringsrcSource files
deststringDestination file.
optionsobjectOptional settings.

License

This software is released under the MIT License.

Links