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

WordPress Trac noreply at wordpress.org
Tue Apr 3 01:03:32 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 netweb):

 Replying to [comment:48 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.

 See ''option 3'' in comment:3, I think there more in-depth discussion in
 Slack at the time though I'd have to double check

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


More information about the wp-trac mailing list