Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "traceur", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Experimental ES6 to ES5 compiler", | ||
@@ -48,5 +48,5 @@ "keywords": [ | ||
"semver": "2.2.1", | ||
"traceur": "0.0.11" | ||
"traceur": "0.0.12" | ||
}, | ||
"subdomain": "traceur" | ||
} |
@@ -39,2 +39,4 @@ // Copyright 2013 Traceur Authors. | ||
flags.option('--dir <INDIR> <OUTDIR>', 'Compile an input directory of modules into an output directory'); | ||
flags.option('--sourcemap', 'Generate source maps'); | ||
@@ -56,2 +58,3 @@ flags.on('sourcemap', function() { | ||
console.log(' $ %s --out compiled.js b.js c.js', cmdName); | ||
console.log(' $ %s --dir indir outdir', cmdName); | ||
console.log(''); | ||
@@ -113,3 +116,3 @@ }); | ||
if (option) { | ||
if (arg === '--out') | ||
if (arg === '--out' || arg === '--dir') | ||
interpretMode = false; | ||
@@ -165,2 +168,3 @@ | ||
var out = flags.out; | ||
var dir = flags.dir; | ||
if (out) { | ||
@@ -172,4 +176,8 @@ var isSingleFileCompile = /\.js$/.test(out); | ||
compileToDirectory(out, includes, flags.sourceMaps); | ||
} else { | ||
} else if (dir) { | ||
var compileAllJsFilesInDir = require('./compile-single-file.js').compileAllJsFilesInDir; | ||
compileAllJsFilesInDir(dir, includes[0]); | ||
} | ||
else { | ||
interpret(path.resolve(includes[0]), includes.slice(1), argv.flags); | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
907205
23295