JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26217F
  • License MIT

Closure Compiler wrapper

Package Exports

  • uupaa.compile.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uupaa.compile.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Compile.js Build Status

npm

Closure Compiler wrapper.

Document

How to use

Install

$ npm install -g uupaa.compile.js

Node.js

var Compile = require("uupaa.compile.js");
var inputFile = "./input.js";
var outputFile = "./output.js";
var options = "--compilation_level ADVANCED_OPTIMIZATIONS --formatting pretty_print";

Compile.exe(inputFile, outputFile, options, function(err, stdout, stderr) {
    if (err || stderr) {
        console.log("ERR");
    } else {
        console.log("OK");
    }
});

History

  • Compiler.js version 0.2.2 - with Closure Compiler v20160619
  • Compiler.js version 0.2.1 - with Closure Compiler v20141120
  • Compiler.js version 0.2.0 - with Closure Compiler v20140923
    • support new feature
      • --language_in ECMASCRIPT6 and --language_in ECMASCRIPT6_STRICT
      • --language_out ECMASCRIPT5 and --language_out ECMASCRIPT5_STRICT
  • Compiler.js version 0.0.0 - 0.1.7 with Closure Compiler v20131014