[wp-trac] [WordPress Trac] #43055: Reorganize Core JS / introduce build step

WordPress Trac noreply at wordpress.org
Mon Apr 2 13:45:41 UTC 2018


#43055: Reorganize Core JS / introduce build step
------------------------------+-------------------------
 Reporter:  omarreiss         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  dev-feedback      |     Focuses:  javascript
------------------------------+-------------------------

Comment (by adamsilverstein):

 Wild idea: can we consider building into `src` instead of into `build`?
 That might mean moving all CSS files out of `src` as well, and building
 them back into place. Wondering if we can eliminate the `build` folder
 entirely, this would let developers continue running their existing local
 setups without any directory changes, the only new requirement would be
 running the build step to start and `watch` for css/js development.

 Its a bit odd that with this change as it stands we wind up with three
 locations for files - the root where source files live (JavaScript), `src`
 where some source files live (php, css) and `build` where everything gets
 copied to from `src`. Am I missing something, is there some other reason
 we need to have separate src and build folders? If not, lets consider make
 a complete shift and avoiding the double folder build process.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43055#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list