add auxilary comment option to prepend to helpers - #777

This commit is contained in:
Sebastian McKenzie
2015-02-14 16:53:41 +11:00
parent 6ad16302cd
commit 0e1743738e
4 changed files with 24 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ commander.option("-c, --remove-comments", "Remove comments from the compiled cod
commander.option("-M, --module-ids", "Insert module id in modules", false);
commander.option("-R, --react-compat", "Makes the react transformer produce pre-v0.12 code");
commander.option("--keep-module-id-extensions", "Keep extensions when generating module ids", false);
commander.option("-a, --auxilary-comment [comment]", "Comment text to prepend to all auxilary code");
commander.on("--help", function () {
var outKeys = function (title, obj) {
@@ -99,6 +100,7 @@ if (errors.length) {
exports.opts = {
keepModuleIdExtensions: commander.keepModuleIdExtensions,
auxilaryComment: commander.auxilaryComment,
sourceMapName: commander.outFile,
experimental: commander.experimental,
reactCompat: commander.reactCompat,