Closed jescalan closed 10 years ago
But I actually need that option, it looks like you just removed it?
What do you need the option to do? I removed it because It was doing nothing.
If you want to generate js without comments use: {comments:0} (default is 1)
If it was not the case, please tell me.
I want it to generate js with comments, but without the header that says "compiled with litescript" and the source file
ok, I've added option extraComments, default 1. when 1, adds "//compiled by" source reference.
Perfect! That helps a lot.
Hey, sort of unrelated, but do you have tests at all for this library?
npm test
from main folder.
runs: https://github.com/luciotato/LiteScript/blob/master/devel/util/test.js
Specific test for compiler javascript API, see: https://github.com/luciotato/LiteScript/blob/master/devel/util/test-v0.6/require-compiler/compileDir.js
unrelated also, and maybe not my business, but... are you just testing LiteScript or building some app, or migrating some existing app?
It looks like you have this option all set up to work fine, but it doesn't actually do anything at the moment.
https://github.com/luciotato/LiteScript/blob/master/lib/Compiler.js#L188