Page MenuHomePhabricator

Bring video.js in via composer
Closed, DuplicatePublic

Description

Video.js is available on packagist/composer, so rather than keeping copies of the files in our local repo, would be nice to bring them in...

Obviously, as it's not PHP, and the file path isn't going to be fixed, this is going to be more complicated...

Event Timeline

Change 320094 had a related patch set uploaded (by Reedy):
[WIP] Bring in video.js from composer

https://gerrit.wikimedia.org/r/320094

Can we add the files to mediawiki-vendor repo please?

Can we add the files to mediawiki-vendor repo please?

That is the point, I'm making that commit now. It won't be such a simple swap over as it would be for PHP files, so might need a bit of playing about

Change 320095 had a related patch set uploaded (by Reedy):
Add videojs/video.js for TimedMediaHandler

https://gerrit.wikimedia.org/r/320095

I don't think we should pull this from composer. The general direction we are looking in is npm and maybe yarn. pulling this one library into composer doesn't help us much and will create further disjunction.

I'd rather just commit the node_modules subdirectory.

I don't think we should pull this from composer. The general direction we are looking in is npm and maybe yarn. pulling this one library into composer doesn't help us much and will create further disjunction.

I'd rather just commit the node_modules subdirectory.

Looks kinda unloved... https://github.com/wikimedia/mediawiki-extensions-TimedMediaHandler/blob/master/package.json#L17 - 5.12.2 exists in our repo...

That's because apparently last time @Paladox forgot to update that.

Change 320094 abandoned by Reedy:
[WIP] Bring in video.js from composer

https://gerrit.wikimedia.org/r/320094

Change 320095 abandoned by Reedy:
Add videojs/video.js for TimedMediaHandler

https://gerrit.wikimedia.org/r/320095