Thursday, October 2, 2008

Eclise and JSLint

Setup to run JSLint as an external tool in Eclipse Ganymede. It will run on the currently selected file.



With JSLint, Firefox + Firebug, the nightly Webkit you can knock out enough bugs that IE becomes manageable. You only have to spend 50% of the time with alert() boxes instead of 80% of the time ;-)

Wednesday, October 1, 2008

Packing javascript

A very solid Java module to minify your javascript code on the fly. Also there are some other goodies, check the website.

http://www.galan.de/projects/packtag

The documentation is pretty terse but the package works out of the box. Some gotchas:


  1. In the jsp tag you have to use server side paths for the src attribute (or child element)
  2. If you disable the jsp tag there is no generated code, this kind of makes sense since the script tag has a different path.