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' moduleexports = $pkg: /* ... */ $tasks: // Define your own task. 'js:optimize': '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.