[wp-trac] [WordPress Trac] #43055: Reorganize Core JS / introduce build step
WordPress Trac
noreply at wordpress.org
Thu Apr 5 13:36:37 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 TJNowell):
> This is particular important, as grunt watch has awful performance in
any environment that uses a VM and shared folders.
Not if you run it on the host machine. Part of the opposition of VVV to
auto running `grunt watch` is that not every user is interested in
developing core, yet an instance is installed out of the box. Running
grunt watch in the provisioner would add overhead to every VVV users
installs unless they disabled the core dev sites and imo that's an
unreasonable ask.
> Automated development environment setup scripts. The Gutenberg setup
script walks the user through setting up their development environment. It
would obviously need to be written to work on Windows, too, before it was
a valid option for Core.
I began work on a VVV tool to do this automatically once
Vagrant/VirtualBox were installed:
https://github.com/tomjn/vvv-cd-installer
the goal being that you could copy it off a USB drive and run it, and it
would step through every stage of setting up an environment:
https://github.com/tomjn/vvv-cd-installer
But I see no reason the docker call in the GB script couldn't be a `git
clone ... cd vvv.. vagrant up --provision`
As an aside, if we're moving more to webpack, should we not make use of
npm scripts so that we maintain the same commands regardless of the tools
behind the scenes? `npm run watch` `npm run build` etc
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43055#comment:56>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list