JQuery & JQueryUI directory version numbering

We create a server directory structure for JQuery and JQueryUI that has version numbering like this:

  /lib/jquery/#.#.#/
  /lib/jqueryui/#.#.#/

For example JQuery 1.6.2 and JQueryUI 1.8.16 are here:

  /lib/jquery/1.6.2/
  /lib/jqueryui/1.8.16/

The directories have the minified Javascript files:

  /lib/jquery/#.#.#/jquery-#.#.#.min.js
  /lib/jqueryui/#.#.#/jquery-ui.min.js

The JQueryUI themes go in this subdirectory:

  /lib/jqueryui/#.#.#/themes/

For example the themes for "smoothness" goes here:

  /lib/jqueryui/1.8.16/themes/smoothness/jquery-ui-1.8.16.custom.css
  /lib/jqueryui/1.8.16/themes/smoothness/images/*

We also create symlinks to make it easy to request the exact version or the most recent version in a given branch, by truncating the version numbers.

jQuery:

  /lib/jquery/1.6.2/jquery.min.js
  /lib/jquery/1.6/jquery.min.js
  /lib/jquery/1/jquery.min.js

jQuery UI:

  /lib/jqueryui/1.8.16/js/jquery-ui.custom.min.js
  /lib/jqueryui/1.8/js/jquery-ui.custom.min.js
  /lib/jqueryui/1/js/jquery-ui.custom.min.js

jQuery UI themes:

  /lib/jqueryui/themes/1.8.16/smoothness/jquery-ui.custom.css
  /lib/jqueryui/themes/1.8/smoothness/jquery-ui.custom.css
  /lib/jqueryui/themes/1/smoothness/jquery-ui.custom.css

This directory approach matches the Google API approach:
http://code.google.com/apis/libraries/devguide.html#versioning

This enables designers and developers to request which JQuery they want at whichever granularity they want. This is helpful during testing, integration, and production as we phase in new JQuery versions.



What's Next?

blog comments powered by Disqus