apeman-task-closurecompiler

2.0.3 • Public • Published

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
Name Type Default Description
src string src
dest string Destination file.
options object Optional settings.

License

This software is released under the MIT License.

Links

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.3
    1
    • latest

Version History

Package Sidebar

Install

npm i apeman-task-closurecompiler

Weekly Downloads

1

Version

2.0.3

License

MIT

Last publish

Collaborators

  • okunishinishi