I wanted mediaelement to automatically download the mediaelement.js library, so i borrowed the drush commands from git_deploy (which looks like it, in turn, borrowed from htmlelement:) to do the trick with this module.

see http://drupal.org/node/1081820 for the glip/git_deploy discussion.

I modified it to use git submodules. That's just how i wanted it.

Really, this could should be abstracted and turned into a drush module that reads a setting from the module .info file to see which remotes should be brought in as libraries... it wouldn't surprise me if someone is already working on this.

CommentFileSizeAuthor
#1 1129300-drushintegration.patch2.48 KBbc

Comments

bc’s picture

Issue tags: +drush integration
StatusFileSize
new2.48 KB

patch attached. it adds a new file, mediaelement.drush.inc, that has hooks for module enable as well as a drush command to add the mediaelement.js code as a git submodule.

Crell’s picture

Drush Make already does this, so it should just be a matter of adding a makefile with the right directives in it. No additional code needed.

jnettik’s picture

Version: 7.x-1.0 » 8.x-1.x-dev
Priority: Minor » Normal
Issue summary: View changes
Status: Needs review » Active

I think this would be helpful not only with Drush but if there's a composer based solution for D8 sites as well.

jnettik’s picture

Title: drush integration » Scripted download of javascript library.