es6-transpiler icon indicating copy to clipboard operation
es6-transpiler copied to clipboard

Add --options parameter

Open kobezzza opened this issue 10 years ago • 3 comments

#1

es6-transpiler ./myFile.es6 --options '{disallowUnknownReferences: false}' > ./myFile.js

#2

es6-transpiler ./myFile.es6 --options ./options.js > ./myFile.js

kobezzza avatar Sep 11 '14 10:09 kobezzza

Better to follow the POSIX guidelines for command line arguments using some kind of getopt implementation.

raiden-dev avatar Sep 11 '14 12:09 raiden-dev

It does not matter, i'll be glad to any implementation.

https://github.com/visionmedia/commander.js - good module.

kobezzza avatar Sep 11 '14 13:09 kobezzza

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.

termi avatar Sep 12 '14 17:09 termi