Hello everybody!
I'm happy to announce jsc, the Javascript Compiler.
With jsc you can compile your JavaScript code throught Google Closure
Compiler REST service[1].
== Install
Run:
[sudo] gem install jsc
or get source from http://github.com/sub/jsc
== Samples of usage
Get compiled code, if no errors are found:
jsc compiled_code.js
Just check for errors:
jsc errors.js -e
Run jsc --help for more info about allowed options.
== Flymake
For GNU Emacs users, jsc provides a flymake[2] compatible output. So you can use
jsc+flymake to have a syntax check tool running in the background while editing
javascript files:
* how-to configure emacs: http://wiki.github.com/sub/jsc/flymake
* screenshot: http://img130.imageshack.us/img130/8382/jscflymake.png
Feedback and suggestions are welcome
Cheers,
ยทยทยท
--
Davide Saurino
Fork me on GitHub http://github.com/sub/
Follow me on http://twitter.com/fitzkarraldo
[1] http://code.google.com/closure/compiler/
[2] http://www.emacswiki.org/emacs/FlyMake