add "fast" option for transformers

This commit is contained in:
Sebastian McKenzie
2015-01-13 22:02:04 +11:00
parent f14f72b635
commit 0f55a66f5b
21 changed files with 226 additions and 124 deletions

View File

@@ -18,6 +18,7 @@ commander.option("-m, --modules [modules]", "Module formatter type to use [commo
commander.option("-l, --whitelist [whitelist]", "Whitelist of transformers to ONLY use", util.list);
commander.option("-b, --blacklist [blacklist]", "Blacklist of transformers to NOT use", util.list);
commander.option("-i, --optional [list]", "List of optional transformers to enable", util.list);
commander.option("--fast [list]", "List of transformers to enable their fast mode", util.list);
commander.option("-o, --out-file [out]", "Compile all input files into a single file");
commander.option("-d, --out-dir [out]", "Compile an input directory of modules into an output directory");
commander.option("-c, --remove-comments", "Remove comments from the compiled code", false);
@@ -116,6 +117,7 @@ exports.opts = {
comments: !commander.removeComments,
runtime: commander.runtime,
modules: commander.modules,
fast: commander.fast,
format: {
indent: {
style: util.repeat(parseInt(commander.indent))