127 Commits

Author SHA1 Message Date
Gary Pendergast
26414eec37 Block Editor: Update @wordpress dependencies to the latest version.
Changes of note:
- Includes the new Annotations API package.
- `wp-polyfill-ecmascript.js` is renamed to `wp-polyfill.js`.
- `strip_dynamic_blocks()` has been removed in favour of `excerpt_remove_blocks()`.
- The PHP block parser is now syncing from the `block-serialization-default-parser` package.
- `do_blocks()` uses the new parser.
- The `do_block` filter has been removed from `do_blocks()`, in favour of a `render_block` filter in `render_block()`.

See #45145, #45190, #45264, #45282.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43884 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-12 02:26:18 +00:00
Gary Pendergast
5504866f20 Build Tools: Update the @wordpress packages.
This brings support for the custom fields meta box to the block editor.

The `webpack` and `copy-webpack-plugin` packages have also been updated.

See #45145.
Fixes #45257.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43861 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-03 07:56:28 +00:00
Gary Pendergast
981c18c941 Build Tools: Switch to Node 10.13.0.
Now that Node 10 is the LTS branch, with 10.13.0 as the first LTS release, let's use that for building WordPress.

See #45241.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43853 602fd350-edb4-49c9-b593-d223f7449a82
2018-11-01 02:01:04 +00:00
Gary Pendergast
f05a39a875 Build Tools: Update the @wordpress packages.
Trunk now matches Gutenberg 4.2 RC1.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43847 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-31 05:49:01 +00:00
Gary Pendergast
165b192bbd Build Tools: Update @wordpress packages.
See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43843 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-30 02:43:08 +00:00
Gary Pendergast
f5788217b3 Build Tools: Upgrade @wordpress packages to the latest version.
This also includes the new `@wordpress/format-library` and `@wordpress/notices` packages.

`package-lock.json` has been completely regenerated in this commit.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43840 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 07:40:44 +00:00
Gary Pendergast
a46ea4aa86 Build Tools: Add an npm script shortcut to run grunt.
Rather than needing to install grunt globally, this allows running grunt from `node_modules`, instead.

`npm run grunt ...` is effectively the equivalent of running `grunt ...`.

Props andrew.taylor.
See #45214.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43836 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 02:11:35 +00:00
Gary Pendergast
25928ac375 Build Tools: Revert [43826] and [43824].
Grabbing the packages directly from the Gutenberg repo was an interesting experiment, but it causes significant workflow issues, particular for folks using Windows.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43835 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-29 01:55:57 +00:00
Anton Timmermans
6da9e42b26 Build tools: Clone and build from packages repo.
Instead of requiring the packages individually this commit changes it so the packages are used from the packages repository (gutenberg). This is a solution that makes updating the packages easier, as long as we don't have a monorepo to manage both WordPress & the JavaScript packages together.

Props youknowriad, gziolo, omarreiss, herregroen.
See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43824 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-25 13:42:03 +00:00
Gary Pendergast
ff39bf3d68 Build: Update the @wordpress/editor package.
The `@wordpress/editor` wasn't upgraded to the correct version in [43789].

This commit includes changes from the `@wordpress/block-library` upgrade in [43789], that weren't copied to the correct location in core.

This also regenerates the `package-lock.json` in Linux, which the build server requires.

See #45145.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43801 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-23 05:34:43 +00:00
Anton Timmermans
d45455e3bf Build tools: Upgrade @wordpress packages.
Generated using `npm update @wordpress/api-fetch @wordpress/blob @wordpress/block-library @wordpress/blocks @wordpress/components @wordpress/compose @wordpress/core-data @wordpress/data @wordpress/date @wordpress/dom @wordpress/edit-post @wordpress/editor @wordpress/element @wordpress/escape-html @wordpress/list-reusable-blocks @wordpress/nux @wordpress/plugins @wordpress/redux-routine @wordpress/rich-text @wordpress/url @wordpress/viewport`.

See #45145.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43789 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 13:57:49 +00:00
Gary Pendergast
34aa09d5b8 Build: Switch package.json to using tabs for indents.
Merges [42460] to the 5.0 branch.

Props netweb.
Fixes #43075.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43782 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-22 04:49:24 +00:00
Anton Timmermans
2588c1cae2 Build tools: Build @wordpress packages with webpack.
We decided to split the media webpack config into it's own file. The
main webpack config then combines this file with the packages config.

Include vendor scripts by copying them. We copy the minified files if
they are available. If they aren't available we minify the original
files ourselves.

Props omarreiss, herregroen, gziolo, youknowriad, netweb, adamsilverstein.
See #45065.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43719 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-11 10:00:16 +00:00
Anton Timmermans
d1373c8af6 Build tools: Upgrade webpack to version 4.
* Minification is done by uglify, so disable that in the media build.
* The webpack boilerplate has changed, which explains the changes in the build files.
* `ModuleConcatenationPlugin` is enable by default for production builds so we don't have to specify that ourselves.

See #45065.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43688 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 09:33:36 +00:00
Aaron Jorbin
d2c93a4e64 Build/Test Tools: Revert grunt-contrib-uglify update
Follow up to [43684].
See #45064.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43686 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 04:43:30 +00:00
Aaron Jorbin
f24452eb46 Build/Test: Use same grunt-qunit as trunk for 5.0
See [43684].
See #45064.


git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43685 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 03:25:21 +00:00
Aaron Jorbin
bb3dc305dd Build/Test: Update dependencies for 5.0
Updates package dependencies to more modern versions, also adds .nvmrc and package-lock.json as followups to [43683] and [43571].

See #44600.
Fixes #45064.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43684 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-09 02:51:32 +00:00
Gary Pendergast
5655a9acbf Bump the 5.0 branch package.json version to 5.0.0.
git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43679 602fd350-edb4-49c9-b593-d223f7449a82
2018-10-05 20:43:28 +00:00
Aaron D. Campbell
169f2a432d Post 4.9.7 version bump for 4.9 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43433 602fd350-edb4-49c9-b593-d223f7449a82
2018-07-05 18:13:53 +00:00
Dominik Schilling (ocean90)
6ed010dc57 Branch 4.9 is now 4.9.7-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43298 602fd350-edb4-49c9-b593-d223f7449a82
2018-05-17 19:56:28 +00:00
Aaron D. Campbell
17322861fc Post 4.9.5 version bump for 4.9 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42959 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-03 22:41:15 +00:00
Sergey Biryukov
7de6c23590 Post 4.9.4 version bump for 4.9 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42668 602fd350-edb4-49c9-b593-d223f7449a82
2018-02-07 23:18:56 +00:00
Dion Hulse
e6f1bfe881 Bump the 4.9 branch to version 4.9.4.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42656 602fd350-edb4-49c9-b593-d223f7449a82
2018-02-06 15:41:43 +00:00
Aaron D. Campbell
15f864489d Post 4.9.2 version bump for 4.9 branch
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42520 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-16 23:58:04 +00:00
Dion Hulse
476ba3af29 Bump the 4.9 branch to version 4.9.2.
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42494 602fd350-edb4-49c9-b593-d223f7449a82
2018-01-16 21:36:18 +00:00
Weston Ruter
08ce1f02a0 Bump package.json version to 4.9.1
git-svn-id: https://develop.svn.wordpress.org/branches/4.9@42197 602fd350-edb4-49c9-b593-d223f7449a82
2017-11-16 01:15:10 +00:00
Adam Silverstein
851d51ebd6 Build: Webpack instead of Browserify as JavaScript bundler.
Use Webpack as our bundler of choice, enabling improved JavaScript build chain capabilities.

Props aduth, netweb, kadamwhite, schlessera.
Fixes #40894. 


git-svn-id: https://develop.svn.wordpress.org/trunk@41752 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-04 21:00:15 +00:00
Adam Silverstein
6e7053a6df Docs: JSDoc improvements for namespaces.
Improve JS parsing of our inline JSDocs by introducing `@namespace`, `@lends` and `@memberOf`. Helps set the way for showing our JavaScript documentation on developer.wordpress.org, see https://meta.trac.wordpress.org/ticket/3063.

* Define all used namespaces using @namespace.
* Correctly specify in which namespace each class is using @memberOf.
* Define each usage of the extend function as a prototype assignment using @lends.
* Some comment blocks were moved to correct the parsing of certain definitions. 

Props herregroen, atimmer, netweb, SergeyBiryukov.  
Fixes #41682.


git-svn-id: https://develop.svn.wordpress.org/trunk@41351 602fd350-edb4-49c9-b593-d223f7449a82
2017-09-08 18:41:20 +00:00
Aaron Jorbin
7ac4e811b4 Build/Test Tools: Add banner to minified CSS files
Patches occasionally come in on generated files. We should be kind to new contributors and give them a hint that these files are auto generated.

Props drewapicture, samuelsidler, netweb, valendesigns, kpdesign, nacin, jorbin
Fixes #30666


git-svn-id: https://develop.svn.wordpress.org/trunk@41271 602fd350-edb4-49c9-b593-d223f7449a82
2017-08-19 20:09:31 +00:00
Gary Pendergast
f780ce0a49 Emoji: Port the Twemoji regex to PHP.
Previously, `wp_encode_emoji()` and `wp_staticize_emoji()` used inaccurate regular expressions to find emoji, and transform then into HTML entities or `<img>`s, respectively. This would result in emoji not being correctly transformed, or occasionally, non-emoji being incorrectly transformed.

This commit adds a new `grunt` task - `grunt precommit:emoji`. It finds the regex in `twemoji.js`, transforms it into a PHP-friendly version, and adds it to `formatting.php`. This task is also automatically run by `grunt precommit`, when it detects that `twemoji.js` has changed.

The new regex requires features introduced in PCRE 8.32, which was introduced in PHP 5.4.14, though it was also backported to later releases of the PHP 5.3 series. For versions of PHP that don't support this, it will fall back to an updated version of the loose-matching regex.

For short posts, the performance difference between the old and new regex is negligible. As the posts get longer, however, the new method is exponentially faster.

Fixes #35293.



git-svn-id: https://develop.svn.wordpress.org/trunk@41043 602fd350-edb4-49c9-b593-d223f7449a82
2017-07-14 05:46:19 +00:00
Ella Van Dorpe
f87f1d8286 Trunk is really 4.9-alpha now
git-svn-id: https://develop.svn.wordpress.org/trunk@40871 602fd350-edb4-49c9-b593-d223f7449a82
2017-06-01 22:07:51 +00:00
Andrew Nacin
b16f57240e Build/Test Tools: Specify exact node version in package.json.
Enforce it in the tests.

see #35105.


git-svn-id: https://develop.svn.wordpress.org/trunk@39478 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-04 17:29:26 +00:00
Helen Hou-Sandi
a8cb1d8208 Trunk is really 4.8-alpha now.
git-svn-id: https://develop.svn.wordpress.org/trunk@39359 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-24 21:55:17 +00:00
Aaron Jorbin
40197b63d9 Revert [39118] due to incompatibility with node v0.10.x
Props nacin

See #38199.



git-svn-id: https://develop.svn.wordpress.org/trunk@39119 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 06:08:34 +00:00
Aaron Jorbin
c03bc60a70 Bump grunt-includes from 0.5.4 to 1.0.0
Diff
0790695413

See #38199.


git-svn-id: https://develop.svn.wordpress.org/trunk@39118 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:44:18 +00:00
Aaron Jorbin
2c0e24babf Bump grunt-contrib-uglify from 1.0.1 to 2.0.0
Sets `screwIE8` to false as it is now enabled by default

Files Changed:
build/wp-admin/js/customize-nav-menus.min.js
build/wp-admin/js/customize-widgets.min.js
build/wp-includes/js/customize-loader.min.js

Changelog:
2016-07-19   v2.0.0   Update uglify-js to v2.7.0. screwIE8 is enabled by default.
2016-07-19   v1.0.2   Update grunt to ^1.0.0. Fix beautify when passed as an object. Fix docs about report values.

See #38199.



git-svn-id: https://develop.svn.wordpress.org/trunk@39117 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:39:10 +00:00
Aaron Jorbin
fff00cbc94 Bump grunt-contrib-cssmin from v1.0.0 to v1.0.2
Changelog:
2016-08-31   v1.0.2   Fix issues for node 6.
2016-03-16   v1.0.1   Downgrade maxmin to support Node.js 0.10.

See #38199.


git-svn-id: https://develop.svn.wordpress.org/trunk@39116 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:31:56 +00:00
Aaron Jorbin
2de138fbb6 Bump grunt-contrib-compress from 1.1.0 to 1.3.0
Changelog:
2016-05-24   v1.3.0   Update to Archiver 1.0. Fix node 6 support.
2016-03-24   v1.2.0   Dependency update.

See #38199


git-svn-id: https://develop.svn.wordpress.org/trunk@39115 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:27:41 +00:00
Aaron Jorbin
05b092902a Bump autoprefixer from 6.5.0 to 6.5.1
Changelog
Fix selectors with :-- prefix support.

See #38199.

M    package.json


git-svn-id: https://develop.svn.wordpress.org/trunk@39114 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:17:07 +00:00
Aaron Jorbin
822762b101 Bump grunt-contrib-qunit from 1.1.0 to 1.2.0
Changlog:
2016-04-14   v1.2.0   Add support for filtering running modules using command line (--modules) Removed 'grunt.warn' output from error.onError handler, onus now on end user binding to event. Update docs.

See #38199.


git-svn-id: https://develop.svn.wordpress.org/trunk@39113 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 05:13:35 +00:00
Aaron Jorbin
3146b1e971 Bump grunt-sass from 1.1.0 to 1.2.1
diff: https://github.com/sindresorhus/grunt-sass/compare/v1.1.0...v1.2.1

See #38199.


git-svn-id: https://develop.svn.wordpress.org/trunk@39110 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 04:54:46 +00:00
Aaron Jorbin
8c3dd28ec7 Build/Test: Bump Autoprefixer to 6.5.0
Also includes a new prefixed value.

Changes:
6.5 “Einigkeit und Recht und Freiheit”
- Add defaults keyword to browsers requirements.
- Fix CSS Grid Layout support.
- Fix align-self cleaning.

6.4.1
- Fix node cloning after some PostCSS plugins.

6.4 “Hic et ubique terrarum”
- Add :any-link selector support.
- Add text-decoration-skip support.
- Add transition: duration property support.
- Fix -webkit- prefix for backface-visibility.
- Fix rad unit support in gradients (by 刘祺).
- Fix transition support in Opera 12.
- Removed Safari TP Grid prefixes support.

6.3.7
- Fix rare Cannot read property 'constructor' of null issue.

6.3.6
- Add Safari TP prefix support for Grid Layout.

6.3.5
- Fix duplicate prefixes for -ms-interpolation-mode.

6.3.4
- Show users coverage for selected browsers in info().

28.0
- Happy Birthday @nacin

See #38199




git-svn-id: https://develop.svn.wordpress.org/trunk@38688 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-30 17:33:57 +00:00
Helen Hou-Sandi
35c6691858 Trunk is now 4.7-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@38178 602fd350-edb4-49c9-b593-d223f7449a82
2016-08-02 13:44:37 +00:00
Gary Pendergast
62c518df0d Tools: Update grunt-patch-wordpress to 0.4.2.
This update fixes invalid patches being uploaded to Trac when the `diff-cmd` is set to `colordiff`.

Props jorbin.
Fixes #37410.



git-svn-id: https://develop.svn.wordpress.org/trunk@38111 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-20 06:48:26 +00:00
Aaron Jorbin
127493e141 Update grunt-patch-wordpress to 0.4.0
This update adds two main features for your WordPress development happiness.

1) GitHub URL support. You can now use `grunt patch:https://github.com/aaronjorbin/develop.wordpress/pull/3` with any copy of WordPress on GitHub. No longer will you need to download the patch manually.  Works for both core and develop mirrors on GitHub.  

2) Upload patches directly from the command line. No longer will you need to create a patch and manually upload it to trac. `grunt upload_patch:20000` will upload a patch to the appropriate ticket after a user enters a WordPress.org username and password. This is limited to users with the appropriate XML-RPC privileges in trac (right now, that is just bug gardeners). You still need to manually add the `has patch` keyword.  

Full changelog: https://github.com/aaronjorbin/grunt-patch-wordpress/compare/0.3.0...0.4.0

Fixes #35917.
Props netweb, ericlewis, michaelbeil, jorbin.


git-svn-id: https://develop.svn.wordpress.org/trunk@37612 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-01 21:24:09 +00:00
Aaron Jorbin
9d68dce5b2 Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1
This changes every JS file in WordPress, so we need to test everything.

Props netweb.
See #36520.


git-svn-id: https://develop.svn.wordpress.org/trunk@37212 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-15 16:09:07 +00:00
Ella Iseulde Van Dorpe
f0bc007421 Build/Test Tools: Better git/svn detection
Prevent tasks from running twice in parallel 
if both .svn and .git directories are present.

Add `--ignore-externals` to `svn status`
and replace `git diff --name-only` with `git status --short`.

Merge some duplicate code.

Fixes #36394.
See #35557.
See [36906].



git-svn-id: https://develop.svn.wordpress.org/trunk@37185 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 22:33:18 +00:00
Dominik Schilling (ocean90)
65ec7e5d81 Trunk is now 4.6-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@37183 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-12 20:03:58 +00:00
Aaron Jorbin
a720ab2501 Bump grunt-contrib-qunit ~0.7.0 → ~1.1.0
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@37020 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 17:53:51 +00:00
Aaron Jorbin
1e4857c669 Bump grunt-contrib-watch ~0.6.1 → ~1.0.0
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@37019 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 17:50:54 +00:00