Closed rgaiacs closed 10 years ago
The file commonJS.js exists to make TeXZilla usable in any program that uses Common JS interface, not specifically for the testing. It would be possible to generate separate versions, one for the Web only and another with the common JS interface. However at the moment the overhead of the common JS interface is small compared to the rest of the script...
Also I'd like to make the unit tests use a standard common JS interface so that you can run it with your favorite common JS program like NodeJS (Blink), phantomJS (WebKit) or slimerJS (Gecko). At the moment, there is one non-standard slimerJS command for exit that I'd like to drop when common JS is more standardized. I don't want to add specific phantomJS commands.
Thanks for the explanation.
The Makefile now generates proceeds that way:
In particular, commonJS.js can now be modified without having to rebuild the whole parser. And TeXZilla-min.js no longer has the commonJS API (which is a bit bigger now).
The file
commonJS.js
exists because of the linein
unit-tests.js
.What about replace this line with
and remove the file
commonJS.js
?