Page MenuHomePhabricator

How to update JavaScript components
Closed, DuplicatePublic

Description

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: http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm

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.

RobLa-WMF moved this task from Inbox to (unused) on the TechCom-RFC board.Apr 27 2016, 8:25 PM
Krinkle moved this task from (unused) to Inbox on the TechCom-RFC board.Mar 8 2018, 3:36 AM