add possibility to select format of external helpers

This commit is contained in:
Ondrej Kraus
2015-03-04 02:09:31 +01:00
parent 71b9f19e6a
commit a0fb398ca2
2 changed files with 60 additions and 5 deletions

View File

@@ -1,4 +1,13 @@
#!/usr/bin/env node
var commander = require("commander");
var util = require("../lib/babel/util");
var runtime = require("../lib/babel/build-external-helpers");
console.log(runtime());
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));