Commit Graph

100 Commits

Author SHA1 Message Date
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
Aaron Jorbin a702da47a9 Bump grunt-contrib-jshint ~0.11.3 → ~1.0.0
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@37017 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-16 17:41:32 +00:00
Aaron Jorbin a637421857 Revert r36978
grunt-postcss Dropped nodejs 0.10 support and this is causing builds to fail.  Revert until we bump minimum node version. 

See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36980 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 19:19:44 +00:00
Aaron Jorbin 76c2c7a982 Update grunt-browserify ~4.0.1 → ~5.0.0
Updates underlying broweserify library to 13.0.0

See #35104



git-svn-id: https://develop.svn.wordpress.org/trunk@36979 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 19:02:47 +00:00
Aaron Jorbin b06b9e5713 Update grunt-postcss ~0.7.1 → ~0.8.0
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36978 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-13 18:36:27 +00:00
Dominik Schilling (ocean90) 307f8d8558 Build Tools: Update grunt-rtlcss ~1.6.0 → ~2.0.1.
This updates the underlying RTLCSS framework to 2.0 which provides new options and config settings, see https://github.com/MohammadYounes/rtlcss/blob/master/CHANGELOG.md#200---18-feb-2016.

See #35104.

Build: https://build.trac.wordpress.org/changeset/36903

git-svn-id: https://develop.svn.wordpress.org/trunk@36935 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-10 16:00:11 +00:00
Aaron Jorbin 81652abd8b Improve grunt precommit task
Instead of running all tasks, all the time, let's run tasks based on the files changed. PHPUNIT is now a precommit task for all php file changes. 

This adds a new dependency. Please run `npm install`.

Fixes #35557
Props  ericlewis, netweb, jorbin



git-svn-id: https://develop.svn.wordpress.org/trunk@36906 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-09 20:54:10 +00:00
Aaron Jorbin 6d01e8650c Update grunt-contrib-cssmin ~0.14.0 → ~1.0.0
See #35104.


git-svn-id: https://develop.svn.wordpress.org/trunk@36865 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:36:36 +00:00
Aaron Jorbin 366dab5560 Update grunt-contrib-copy ~0.8.2 → ~1.0.0
See #35104.


git-svn-id: https://develop.svn.wordpress.org/trunk@36864 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:34:11 +00:00
Aaron Jorbin a1d75ea8e4 Update grunt-contrib-concat ~0.5.1 → ~1.0.0
see #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36863 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:31:16 +00:00
Aaron Jorbin 9973cb2cc7 Update grunt-contrib-compress ~0.14.0 → ~1.1.0
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36862 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:24:23 +00:00
Aaron Jorbin a0a26df25f Update grunt-contrib-clean from 0.6.0 → 1.0.0
see #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36861 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:18:39 +00:00
Aaron Jorbin cf923b657f Update Autoprefixer to 6.3.3
See #35104


git-svn-id: https://develop.svn.wordpress.org/trunk@36860 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-05 23:15:52 +00:00
Gary Pendergast 957697adf0 Build Tools: Update grunt-contrib-imagemin to v1.0.0
This updates `imagemin` to 4.0.0, which fixes an error when running `grunt imagemin:core`.

Props netweb.

Fixes #35003.



git-svn-id: https://develop.svn.wordpress.org/trunk@35859 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-11 03:37:36 +00:00
Boone Gorges ee8215e442 Bump package.json to 4.5.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@35778 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-06 17:35:35 +00:00
Dominik Schilling (ocean90) 9c709c218a Build Tools: Update `autoprefixer` to 0.6.1.
Release Post: https://github.com/postcss/autoprefixer/releases/tag/6.1.0

Includes changes to CSS files after `grunt precommit` because of the new transition support and a new parser for gradients (see [34637]).

See #34177.

git-svn-id: https://develop.svn.wordpress.org/trunk@35563 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 11:56:26 +00:00
Dominik Schilling (ocean90) 9632f3a771 Build Tools: Update `grunt-postcss` to 0.7.1.
Change: https://github.com/nDmitry/grunt-postcss/commit/6e18c7d5

See #34177.

git-svn-id: https://develop.svn.wordpress.org/trunk@35562 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-07 11:42:26 +00:00
Aaron Jorbin ca0b5f9df8 Bump grunt-contrib-cssmin to 0.14.0
This updates the underlying version of cssmin

Fixes #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35541 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:57:53 +00:00
Aaron Jorbin b9a8a0f01c Bump grunt-contrib-copy to 0.8.2
updates an underlying dependency and fixes an issue with multiple copies

see #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35540 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:55:06 +00:00
Aaron Jorbin 75e3f3606a Bump grunt-sass to 1.1.0
This bumps the underlying version of node-sass to 3.4.0 and libsass to 3.3.0. It causes no difference in the current sass output.

Props netweb.
See #34177.



git-svn-id: https://develop.svn.wordpress.org/trunk@35539 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:52:49 +00:00
Aaron Jorbin 7b97ea0226 Bump grunt-contrib-uglify to 0.10.0
This includes an update to the underlying version of uglify which causes all of the JS to be modified.

See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35538 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-05 17:46:13 +00:00
Aaron Jorbin 22f3852c84 Bump grunt-contrib-compress
Upsteam changelog: change to verbose output dependency updates Archiver 0.16

See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35521 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:35:07 +00:00
Aaron Jorbin f0bd796c15 Bump grunt-postcss
See #34177


git-svn-id: https://develop.svn.wordpress.org/trunk@35520 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:31:24 +00:00
Aaron Jorbin eef98a3495 Bump matchdep from 0.3.0 to 1.0.0
This drops support for node 0.8.0 so if you still using that, it's time to upgrade your node.

See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35513 602fd350-edb4-49c9-b593-d223f7449a82
2015-11-04 21:21:00 +00:00
Aaron Jorbin 21b29ebf5e Bump grunt-contrib-jshint to 0.11.3
This bumps the included jshint to 2.8.0 from 2.6.0

See #34177




git-svn-id: https://develop.svn.wordpress.org/trunk@35363 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-23 01:09:03 +00:00
Aaron Jorbin 739fc4a8c7 Update grunt-browserify
upstream changes https://github.com/jmreidy/grunt-browserify/compare/v4.0.0...v4.0.1

See #34177


git-svn-id: https://develop.svn.wordpress.org/trunk@35335 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-21 16:58:37 +00:00
Aaron Jorbin 8f2e001efe Replace Autoprefixer Core with Autoprefixer
Autoprefixer Core 5.2.1 -> Autoprefixer 6.0.3 https://github.com/postcss/autoprefixer/releases/tag/6.0.0
Package autoprefixer-core is deprecated in favour of autoprefixer as part of the 6.0.0 release:
Packages autoprefixer and autoprefixer-core were merged in 6.0 release.
Autoprefixer 6.0.0 requires PostCSS 5.0.10 or greater
PostCSS 0.5.4 -> 0.6.0 https://github.com/nDmitry/grunt-postcss/compare/v0.5.4...v0.6.0

You will need to update your dev dependencies after this change.

Props netweb
See #34177



git-svn-id: https://develop.svn.wordpress.org/trunk@35332 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-21 16:47:21 +00:00
Scott Taylor bec5838166 Build Tools: upgrade `grunt-browserify` to `~4.0.0` and remove the `watch` task for `browserify`, which has its own internal watcher. Run `npm install` to update.
Props iseulde.
Fixes #31911.


git-svn-id: https://develop.svn.wordpress.org/trunk@34888 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-07 00:00:00 +00:00