apeman-task-closurecompiler
apeman task to run google-closure-compiler
Last updated 4 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-task-closurecompiler 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.3                                ...           latest (4 years ago)

6 Versions

  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (10)

Copyright 2014 - 2016 © taobao.org |