es6-transpiler
es6-transpiler copied to clipboard
Add --options parameter
#1
es6-transpiler ./myFile.es6 --options '{disallowUnknownReferences: false}' > ./myFile.js
#2
es6-transpiler ./myFile.es6 --options ./options.js > ./myFile.js
Better to follow the POSIX guidelines for command line arguments using some kind of getopt implementation.
It does not matter, i'll be glad to any implementation.
https://github.com/visionmedia/commander.js - good module.
I do not mind of the implementing this https://github.com/visionmedia/commander.js or https://github.com/davepacheco/node-getopt or something similar (but something slight and with a minimum count of dependencies). You are free to PR. Also @kobezzza you are free to add something like 'beforeCompiling' and 'afterCompiling' callbacks.