Attached is a Drush make file that with download jQuery Mobile 1.0.1 and jQuery 1.6.4 if the jquerymobile module is included in a parent drush make file.

Comments

jasonsavino’s picture

There is not jquerymobile.jquery.min library. Can the make file be changed like the following?

libraries[jquerymobile.jquery][download][type] = "file"
libraries[jquerymobile.jquery][download][url] = "http://code.jquery.com/jquery-1.6.4.js"
libraries[jquerymobile.jquery][directory_name] = "jquery-1.6.4"
libraries[jquerymobile.jquery][type] = "library"

libraries[jquerymobile.jquery][download][type] = "file"
libraries[jquerymobile.jquery][download][url] = "http://code.jquery.com/jquery-1.6.4.min.js"
libraries[jquerymobile.jquery][directory_name] = "jquery-1.6.4"
libraries[jquerymobile.jquery][type] = "library"
spotzero’s picture

That change won't work, since:

libraries[jquerymobile.jquery][download][url] = "http://code.jquery.com/jquery-1.6.4.min.js"
will overwrite the previous declaration
libraries[jquerymobile.jquery][download][url] = "http://code.jquery.com/jquery-1.6.4.js"

'jquerymobile.jquery' and 'jquerymobile.jquery.min' in this case are just being used as arbitrary keys (since they aren't actually referring to real projects.
So you can use pretty much anything instead of 'jquerymobile.jquery.min', as long as its unique.

Thanks,

minoroffense’s picture

Status: Active » Needs review

So something like this then?

; jQuery Mobile and jQuery 1.6

api = 2
core = 7.x

libraries[jquerymobile][download][type] = "get"
libraries[jquerymobile][download][url] = "http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.zip"
libraries[jquerymobile][directory_name] = "jquery.mobile"
libraries[jquerymobile][type] = "library"

libraries[jquerymobile.jquery][download][type] = "file"
libraries[jquerymobile.jquery][download][url] = "http://code.jquery.com/jquery-1.6.4.js"
libraries[jquerymobile.jquery][directory_name] = "jquery-1.6.4"
libraries[jquerymobile.jquery][type] = "library"

libraries[jquerymobile.jquery.min][download][type] = "file"
libraries[jquerymobile.jquery.min][download][url] = "http://code.jquery.com/jquery-1.6.4.min.js"
libraries[jquerymobile.jquery.min][directory_name] = "jquery-1.6.4"
libraries[jquerymobile.jquery.min][type] = "library"

Note that both jQuery library files should end up in the same directory called "jquery-1.6.4"

minoroffense’s picture

Title: Drupal Make file » Add drush make file to download required libraries
minoroffense’s picture

Assigned: Unassigned » minoroffense
kscheirer’s picture

Assigned: minoroffense » Unassigned
StatusFileSize
new5.53 KB

I have enpatchified #3, and also removed the drush commands, since the make file is a lot easier. If you like it, the readme should probably be updated too. There are separate issues for removing jQuery from this module, but I left it in the patch.