[wp-trac] [WordPress Trac] #43711: Let's create a standard development setup for WordPress core.

WordPress Trac noreply at wordpress.org
Tue Apr 10 13:22:07 UTC 2018


#43711: Let's create a standard development setup for WordPress core.
------------------------------+------------------------------
 Reporter:  omarreiss         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by TJNowell):

 With note to VVV:

 Currently VVV uses the NFS option to map folders, which is why grunt watch
 is slow/unreliable, but there are mechanisms for mitigating this. Such as
 reducing the caching time to 1ms, or disabling caching at all, or even
 using a completely different mechanism. These options were set in VVV a
 [https://www.youtube.com/watch?v=sZsJyCyGBSI long] time ago, and so the
 exact reasons it's set up that way may be lost to the sands of time (
 depends how sleepy Jeremy was at the time )

 But since the option of a setup script is present, we could setup node etc
 locally on the host bypassing any performance costs of mounted/shared
 folders in Vagrant/Docker

 There are also other Vagrant options to be explored, such as changes to
 guard, or using watchr.

 I also had an idea of how to mitigate the problem of all users having a
 grunt watch in the background even when they aren't doing work on core,
 make it an option turned off by default

 Re: Docker

 Outside linux, docker still runs inside a VM, so a docker container may
 have different performance, but it still has a performance cost. It
 appears that with caching eliminated, the tradeoff is speed

 See here for more details:

 https://docs.docker.com/docker-for-mac/osxfs/#performance-issues-
 solutions-and-roadmap

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


More information about the wp-trac mailing list