New jQuery Build System
New jQuery Build System
Hi Everyone,
I just wanted to let everyone know that I've finished the new build
system for jQuery - it's really fantastic. All documentation, test
cases, and packages are built dynamically straight from the original
source.
The best way to check this all out is to check it out from SVN:
svn co svn://jquery.com/jquery
Instructions for using the Makefile can be found in the README.
Here are some of the biggest changes:
- There is now a Makefile that is able to compile any individual
aspect of jQuery (more on this in the README file).
http://john.jquery.com/jquery/README
- You can build your very own packed version of jQuery, from scratch.
http://john.jquery.com/jquery/dist/
- You can build your own, local, copies of the documentation and test suite.
http://john.jquery.com/jquery/docs/
http://john.jquery.com/jquery/test/
- Everything is built using server-side Javascript (!!) which is
possible using Rhino (which is written in Java). The directories
'build', 'test', and 'docs' all have an associated Javascript file,
which is executed by Rhino - it's some very cool stuff, check it out.
http://john.jquery.com/jquery/build/
- The jQuery API is available as XML and JSON files, which you can use
to develop your very own versions of the documentation (like Visual
jQuery, for example).
http://john.jquery.com/jquery/docs/data/jquery-docs-json.js
http://john.jquery.com/jquery/docs/data/jquery-docs-jsonp.js
http://john.jquery.com/jquery/docs/data/jquery-docs-xml.xml
Both the documentation and test cases are built from the inline
comments that exist in the jQuery source. This is an amazing update,
as a new method can be added to the source and appear in the
documentation (or test suite) virtually instantaneously.
You'll probably notice, by looking at the test suite, that jQuery is
woefully under tested. This is something that I'm working on, but it's
going to take a lot of man power. Please, if you have some spare time,
write up some test cases for jQuery. If you wanna help with this,
please let me know.
As always, feedback is appreciated.
--John