breuleux / earl-grey

Programming language compiling to JavaScript
http://breuleux.github.io/earl-grey/
MIT License
464 stars 6 forks source link

Pretty compilation #13

Open davej opened 9 years ago

davej commented 9 years ago

Currently I can use the -p option to print a prettier (i.e. multi-line) version of the compiled javascript but it doesn't seem to be possible to output the pretty version to a file. Sure I can just pipe the output but that gets complicated when compiling folders or multiple files.

breuleux commented 9 years ago

Well, -p explicitly means print to stdout, it just happens to be the only situation I use the beautifier. I agree it would be a good idea to add a flag for it, or make it the default all the time. I'll try to do that later.