broccoli-closure
Closure compiler plugin for Broccoli
Last updated 4 years ago by markuskobler .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install broccoli-closure 
SYNC missed versions from official npm registry.

broccoli-closure

A closure compiler plugin for broccoli.

Install

$ npm install --save broccoli-closure

Usage

var compile = require('broccoli-closure');

var outputTree = compile(inputTree, outputFile, options);
  • inputTree: A single path or tree of JavaScript files to compile.

  • outputFile: Relative path of the output CSS file.

  • options: A hash of options for closure compiler.

Example

var closure = require('broccoli-closure');

var js =  closure('js', 'app.js', {
  'language_in':         'ECMASCRIPT6',
  'language_out':        'ECMASCRIPT5',
  'warning_level':       'verbose',
  'jscomp_warning':      ['undefinedVars', 'checkRegExp', 'const', 'constantProperty', 'accessControls'],
  'output_wrapper':      '(function(){%output%})()',
  'compilation_level':   'ADVANCED'
})

Current Tags

  • 1.3.1                                ...           latest (4 years ago)

4 Versions

  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 5
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |