Announcing TWBS jQuery: Simple jQuery Update for Drupal 7
During TWBS development upgrade Drupal 7 core jQuery libraries into its latest version for Bootstrap is a must. BTW jQuery Update seems not my cup of tea because it give me too much trobule within previous site building experience: too complicated, bundle everything within its own archive (which I love to manage 3rd party libraries with drush make and Libraries API), and it is really too much for my use case. So why not just work out a simplified version?
After some research and development during Christmas holiday, I would like to introduce my helper module named "TWBS jQuery". The goal of TWBS jQuery is to provide a handy support for jQuery upgrade and act as the helper module for on going Drupal-Bootstrap-Remix development.
All replacement will be handled automatically. No additional configuration is required.
Key Features
- Provide drush make file for library download
- Confirm library successfully initialized with hook_requirements()
- Upgrade jQuery related libraries as below version:
- jQuery: 1.10.2
- jQuery UI: 1.10.3
- jQuery Cookie: 1.4.0
- jQuery Form: 3.46.0
- jQuery Once: 1.2.6
- jQuery BBQ: 1.3pre
- Additional patch for jQuery >= 1.9
NOTE: We don't officially support overlay.module as deprecated in favour of using together with TWBS.
Getting Started
Download and install with drush manually:
drush -y dl --dev twbs_jquerydrush -y make --no-core sites/all/modules/twbs_jquery/twbs_jquery.make
Package into your own drush .make file (e.g. drustack_core.make):
api = 2core = 7.xprojects[twbs_jquery][download][branch] = 7.x-3.xprojects[twbs_jquery][download][type] = gitprojects[twbs_jquery][download][url] = http://git.drupal.org/project/twbs_jquery.gitprojects[twbs_jquery][subdir] = contrib
Live Demo
TWBS jQuery is now integrated into DruStack distribution, so you can try it in a live sandbox with simplytest.me.
Why Another jQuery Module?
For general and generic jQuery update functionality, you should always consider another jQuery Update module which started since 2007-04-26.
On the other hand you should consider about using this module because of:
- Purely design for assist TWBS, which means you will have the best compatibility when using both together
- Fetch libraries directly from original repository and handle initialization with Libraries API; jQuery Update bundle all libraries into it's own code repository and initialize manually
- Only support latest official version of libraries which result as no additional configuration required; jQuery Update support multiple version of jQuery
- Much simple implementation which handle all upgrade and replacement automatically; jQuery Update provide more customization options
Author
- Developed by Edison Wong.
- Sponsored by PantaRei Design.
Please feel free to test it out and comment with your idea. Let's enjoy simplified jQuery update experience ;-)
Tags: DrupalDevelopmentjQuery