Page MenuHomePhabricator

How to update JavaScript components
Closed, DuplicatePublic


How to update JavaScript components? As it is useful to use JavaScript components in MediaWiki core and Extensions, how do we update them from the upstream repository (e.g. using npm)? For sending the JS to the client usually minification or something equivalent is required at some point in time between update and sending out the response to the client. Then ideally all this is automated. This has some similarities for the same question for PHP components, see T105638 for that.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 22 2016, 2:02 PM
brion added a subscriber: brion.Apr 23 2016, 7:29 PM
RobLa-WMF mentioned this in Unknown Object (Event).Apr 27 2016, 6:28 AM
daniel added a subscriber: daniel.Apr 27 2016, 7:58 PM

A cautionary tale about relying too much on npm, composer & co:

I'm all for using package managers. But we have to make sure we get the workflow right, and don't end up depending on a single point of failure that we don't even control.

@JanZerebecki do you plan to propose a solution in this RFC, or do you want to have a completely open field narrowing or even problem definition session? As of now, there doesn't seem to be much to discuss here.

Krinkle moved this task from (unused) to P1: Define on the TechCom-RFC board.Mar 8 2018, 3:36 AM