apeman-task-closurecompiler
v2.0.3
Published
apeman task to run google-closure-compiler
Downloads
3
Maintainers
Readme
apeman-task-closurecompiler
apeman task to run google-closure-compiler
Installation
$ npm install apeman-task-closurecompiler --save-dev
Usage
- Define a task within Apemanfile.js
- 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 | | Source files | | dest | string | | Destination file. | | options | object | | Optional settings. |
License
This software is released under the MIT License.