add extensions to babel-cli bin files

This commit is contained in:
Sebastian McKenzie
2015-07-14 17:14:10 +01:00
parent 0cbcadc2da
commit e294b76a06
3 changed files with 3 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
var commander = require("commander");
var util = require("babel-core").util;
var runtime = require("babel-core").buildExternalHelpers;
commander.option("-l, --whitelist [whitelist]", "Whitelist of helpers to ONLY include", util.list);
commander.option("-t, --output-type [type]", "Type of output (global|umd|var)", "global");
commander.usage("[options]");
commander.parse(process.argv);
console.log(runtime(commander.whitelist, commander.outputType));