atimmer
a814e5d34e
Build tools: Allow building WordPress to src.
...
After the JavaScript reorganization in [43309], it was no longer possible to test WordPress from the `src` folder. That meant a build step was required to test PHP modifications. That is suboptimal as even a simple copy is slower than a web server just serving the new file.
We achieve building to `src` by setting a `WORKING_DIR` constant in the Gruntfile that is `build` by default, but changes to `src` when the `--dev` flag is present on any Grunt command. We provide sensible defaults so some commands, such as copying `version.php`, always build to `build`.
Because testing from `build` is no longer required, we change the messages present in `index.php` and `wp-admin/index.php` to be more broadly about building WordPress.
We also change the webpack config to have more straightforward behavior based on the `buildTarget` argument. It only determines the build target now and has no implicit behavior anymore. `grunt build` still works as it worked before, to make sure that the build server produces the same `wordpress.zip` we are used to.
We do all this instead of a symlink setup because symlinks don't work on every platform.
Props omarreiss, netweb, flixos90, SergeyBiryukov.
Fixes #44492 .
Built from https://develop.svn.wordpress.org/trunk@44359
git-svn-id: http://core.svn.wordpress.org/trunk@44189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-24 13:29:50 +00:00
..
2018-12-19 03:16:48 +00:00
2016-05-13 18:41:31 +00:00
2018-12-24 13:29:50 +00:00
2018-12-17 03:07:55 +00:00
2016-03-18 20:43:26 +00:00
2017-07-31 19:50:45 +00:00
2018-12-19 03:36:27 +00:00
2018-02-06 02:56:32 +00:00
2018-12-24 13:29:50 +00:00
2018-12-19 17:04:48 +00:00
2017-11-08 11:48:49 +00:00
2016-10-05 03:24:37 +00:00
2018-12-19 03:27:26 +00:00
2015-10-20 05:57:24 +00:00
2017-10-26 12:52:53 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-29 15:50:25 +00:00
2016-12-13 01:49:39 +00:00
2018-08-17 01:51:36 +00:00
2018-12-17 18:07:51 +00:00
2018-08-17 01:51:36 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 02:15:37 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2017-11-30 23:11:00 +00:00
2018-12-20 01:59:48 +00:00
2016-08-31 16:31:29 +00:00
2018-06-28 02:20:54 +00:00
2018-12-19 16:36:48 +00:00
2015-10-06 23:45:25 +00:00
2017-01-11 01:23:41 +00:00
2016-10-31 06:28:32 +00:00
2016-10-05 03:24:37 +00:00
2016-06-06 03:24:29 +00:00
2017-01-11 01:23:41 +00:00
2016-07-06 12:40:29 +00:00
2017-11-30 23:11:00 +00:00
2018-09-02 22:09:24 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-12-20 20:04:50 +00:00
2018-03-25 18:10:32 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-12-19 03:17:37 +00:00
2018-12-13 09:44:23 +00:00
2018-12-17 18:00:52 +00:00
2018-12-14 05:13:52 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:32:30 +00:00
2018-12-17 03:07:55 +00:00
2018-12-19 07:23:47 +00:00
2018-02-25 20:32:30 +00:00
2018-02-25 20:32:30 +00:00
2018-02-27 02:31:31 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:52:52 +00:00
2018-12-17 03:32:21 +00:00
2018-08-17 01:51:36 +00:00
2018-02-27 02:31:31 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-02-25 20:22:30 +00:00
2017-11-30 23:11:00 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-03-25 19:33:31 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2017-10-03 15:18:46 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-02-25 20:22:30 +00:00
2018-01-18 05:18:31 +00:00
2018-12-14 01:32:39 +00:00
2018-02-18 16:32:34 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 05:13:52 +00:00
2018-03-25 19:33:31 +00:00
2018-12-14 03:20:37 +00:00
2017-07-27 00:41:44 +00:00
2018-05-07 17:20:22 +00:00
2018-12-17 19:29:51 +00:00
2018-08-17 01:51:36 +00:00
2018-03-25 19:33:31 +00:00
2018-03-22 18:56:33 +00:00
2018-09-14 13:45:26 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-12-15 11:02:18 +00:00
2018-02-25 20:22:30 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-02-25 20:22:30 +00:00
2017-11-30 23:11:00 +00:00
2018-12-14 01:04:36 +00:00
2018-12-14 02:49:38 +00:00
2018-09-14 13:45:26 +00:00
2018-12-20 02:24:48 +00:00
2018-09-23 15:33:24 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:13:52 +00:00
2018-12-13 01:26:24 +00:00
2018-09-28 21:51:24 +00:00
2018-12-17 03:17:04 +00:00
2018-08-11 17:42:24 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:13:52 +00:00
2018-05-10 17:58:22 +00:00
2018-12-19 03:41:49 +00:00
2018-03-25 19:35:29 +00:00
2018-12-14 02:49:38 +00:00
2018-12-14 03:36:38 +00:00
2017-09-25 06:28:45 +00:00
2018-05-05 09:45:22 +00:00
2016-07-06 12:40:29 +00:00
2018-12-24 13:29:50 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2018-08-17 01:51:36 +00:00
2017-12-21 02:40:54 +00:00
2018-12-17 04:52:00 +00:00
2018-12-18 16:35:49 +00:00
2018-12-20 02:42:48 +00:00
2018-12-20 02:42:48 +00:00
2018-12-20 19:01:48 +00:00
2018-04-03 15:00:31 +00:00
2018-12-18 16:58:48 +00:00
2018-12-19 03:34:44 +00:00
2018-12-20 02:49:48 +00:00
2018-12-12 03:08:23 +00:00
2016-12-03 04:16:38 +00:00
2018-12-11 04:45:23 +00:00
2018-12-19 07:26:47 +00:00
2018-12-12 03:02:24 +00:00
2018-09-24 15:22:24 +00:00
2017-11-30 23:11:00 +00:00
2018-09-24 15:09:26 +00:00
2018-12-13 01:26:24 +00:00
2017-11-30 23:11:00 +00:00
2018-09-24 15:09:26 +00:00
2018-02-11 17:09:31 +00:00
2017-11-30 23:11:00 +00:00
2018-08-17 01:51:36 +00:00
2018-12-14 05:16:52 +00:00
2018-08-17 01:51:36 +00:00
2016-07-06 12:40:29 +00:00
2018-10-02 19:51:24 +00:00
2017-11-30 23:11:00 +00:00
2018-08-30 09:01:25 +00:00
2018-12-14 01:50:37 +00:00
2018-03-18 14:23:33 +00:00
2018-12-20 02:19:48 +00:00
2018-08-17 01:51:36 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2018-12-14 06:04:55 +00:00
2018-08-17 01:51:36 +00:00
2017-11-30 23:11:00 +00:00
2017-11-30 23:11:00 +00:00
2016-10-31 06:28:32 +00:00
2018-12-19 03:35:38 +00:00
2017-11-30 23:11:00 +00:00
2018-08-02 15:13:27 +00:00
2017-07-28 01:15:52 +00:00
2018-12-19 03:48:48 +00:00
2017-11-30 23:11:00 +00:00
2018-02-09 16:55:31 +00:00
2018-12-14 03:41:37 +00:00
2018-08-17 01:51:36 +00:00
2018-09-03 21:44:24 +00:00
2017-11-30 23:11:00 +00:00
2018-12-24 13:29:50 +00:00
2018-08-17 01:51:36 +00:00
2018-12-20 00:59:47 +00:00
2017-11-30 23:11:00 +00:00