Page MenuHomePhabricator

Reorganise how MobileFrontend's modules work
Closed, ResolvedPublic

Description

Gather has invented a new way to organise RL modules. It's much more intuitive when it comes to dealing with templates. I propose we do this here too...

This could be done carefully and slowly but the idea would be to move to

  • a folder called resources
  • each folder in resources is the name of the ResourceLoader module as in Resources.php
  • all files - js, templates, less files live in the folder of the corresponding resource.

The benefits of this become mostly apparent when you use mw.template - it's helpful to know which folder your file lives in.
What say ye?