Merge branch 'master' of github.com:6to5/6to5

This commit is contained in:
Sebastian McKenzie 2015-01-12 10:19:53 +11:00
commit eaf9d58b8d

View File

@ -24,6 +24,7 @@ commander.option("-c, --remove-comments", "Remove comments from the compiled cod
commander.option("-I, --indent [width]", "Indent width [2]", 2); commander.option("-I, --indent [width]", "Indent width [2]", 2);
commander.option("-a, --amd-module-ids", "Insert module id in AMD modules", false); // todo: remove in 3.0.0 commander.option("-a, --amd-module-ids", "Insert module id in AMD modules", false); // todo: remove in 3.0.0
commander.option("-m, --module-ids", "Insert module id in modules", false); commander.option("-m, --module-ids", "Insert module id in modules", false);
commander.option("--reactCompat", "Makes the react transformer produce pre-v0.12 code");
commander.on("--help", function(){ commander.on("--help", function(){
var outKeys = function (title, obj) { var outKeys = function (title, obj) {
@ -110,6 +111,7 @@ exports.opts = {
comments: !commander.removeComments, comments: !commander.removeComments,
runtime: commander.runtime, runtime: commander.runtime,
modules: commander.modules, modules: commander.modules,
reactCompat: commander.reactCompat,
format: { format: {
indent: { indent: {
style: util.repeat(parseInt(commander.indent)) style: util.repeat(parseInt(commander.indent))