[wp-trac] [WordPress Trac] #28510: Split javascript files in media into modules

WordPress Trac noreply at wordpress.org
Thu Jun 12 15:45:05 UTC 2014


#28510: Split javascript files in media into modules
-------------------------+-----------------------------
 Reporter:  ericlewis    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  3.5
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 [http://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2014-06-11&sort=asc#m868005 Yesterday in dev chat], ideas for
 splitting up distinct javascript modules in were discussed. As we move
 towards more and more javascript-heavy administrative interfaces, this
 will prove quite helpful in readability, and by extension maintainability.
 A 6000 line file made up of 50-some views is not easy to step into. A
 folder of well organized modules for one feature would be.

 This will only affect the src/ directory in the develop repository, which
 will use our build process to concatenate into the build/ directory, so
 nothing will change for developers using the build/ directory or the core
 repo.

 We'll start this effort with media, and end up with a standardized way of
 doing this going forward.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28510>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list