Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Closure Compiler wrapper.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages