Commit Graph

46 Commits

Author SHA1 Message Date
Scott Taylor 33f416f35a Use `GPL-2.0+` for the value of `license` in `package.json`
Props netweb.
Fixes #32718.


git-svn-id: https://develop.svn.wordpress.org/trunk@32880 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-19 22:31:33 +00:00
Aaron Jorbin e68f7765c1 Update grunt-autoprefixer to 3.0.0
Two changes we need to know about:
* Aborts build if there is an exception thrown bu autoprefixer
* Less verbose output in standard mode

Major version seems to have been bumped due to change in annotation option which which we do not use.

Upstream Changes e30d2c5bfd...6f8dfe8840

See #31700


git-svn-id: https://develop.svn.wordpress.org/trunk@32357 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-05 21:29:04 +00:00
Aaron Jorbin ee60ec1c23 Update grunt-contrib-qunit to 0.7.0
This upgrade adds two changes, both of which are aimed at less reporting of false test passing:
* Log PhantomJS errors as warnings
* Add noGlobals option, forwarded to QUnit. Report proper exit code to grunt based on failures. Add support for AMD.

See #31700



git-svn-id: https://develop.svn.wordpress.org/trunk@32356 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-05 20:29:29 +00:00
Helen Hou-Sandi f8140ca961 Trunk is now 4.3-alpha.
git-svn-id: https://develop.svn.wordpress.org/trunk@32280 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-23 17:59:53 +00:00
Gary Pendergast 5a0564bb8f Emoji: Instead of loading the emoji JS files automatically, we now include a small JS shim in the header, to test if the user's browser needs Twemoji. It then loads the emoji JS files only if they're needed.
Props pento, azaozz.

Fixes #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31875 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 23:32:23 +00:00
Dominik Schilling (ocean90) 5981385894 Update `grunt-rtlcss` to 1.6.0.
Changes:
* https://github.com/MohammadYounes/grunt-rtlcss/compare/1.5.1...1.6.0
* https://github.com/MohammadYounes/rtlcss/compare/1.5.1...1.6.1

see #31332.

git-svn-id: https://develop.svn.wordpress.org/trunk@31802 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 12:17:31 +00:00
Scott Taylor 2058dadaf7 Update NPM Grunt packages: `compress`, `concat`, `copy`, `imagemin` and `uglify`
Props netweb.
Fixes #31489.


git-svn-id: https://develop.svn.wordpress.org/trunk@31650 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 21:13:21 +00:00
Scott Taylor 3d944cc15e Update `grunt-contrib-jshint` to `0.11.0`
Props netweb.
Fixes #31488.


git-svn-id: https://develop.svn.wordpress.org/trunk@31649 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 21:07:35 +00:00
wonderboymusic 689c0982ec Update `grunt-sass` to `0.18.0`.
Props netweb.
Fixes #31343.


git-svn-id: https://develop.svn.wordpress.org/trunk@31648 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-06 21:04:03 +00:00
Dominik Schilling (ocean90) cbb528de0f RTL CSS generation: Switch from CSSJanus to RTLCSS.
CSSJanus (introduced in [26107]), we had a great time with you, but sadly you don't like our fancy CSS.

RTLCSS is a framework for converting CSS from LTR to RTL, same as CSSJanus, with support for more CSS properties like `transform`, `transition` or multiple box and text shadows.

Changes:
* devDependencies: Remove `grunt-cssjanus`, add `grunt-rtlcss`.
* RTLCSS uses `/* rtl:ignore */` to ignore a rule, switch existing `/* @noflip */` to the new directive.
* RTLCSS supports the `transform` property, means we can remove some ignore rules.
* RTLCSS supports string maps for custom replace rules. This commit includes a rule `import-rtl-stylesheet` which replaces ".css" with "-rtl.css" in URLs.

Notes for core development:
* The file generation task is still `grunt rtl`.
* If you have used `grunt cssjanus` before, use `grunt rtlcss` now.
* Remember the new directive `/* rtl:ignore */`.

fixes #31332.

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

git-svn-id: https://develop.svn.wordpress.org/trunk@31573 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-27 13:40:03 +00:00
Aaron Jorbin 39d1f621fd Update grunt-patch-wordpress to 0.3.0
This new update includes the following changes:
 * The tools directory can now be patched along with a handful of other root level files that were failing
 * If patching fails  or otherwise issues a prompt, you can now interact with the prompt
 * Only save the watch file to your directory if you pass the --debug flag
 * Default to selecting the newest patch rather then the oldest patch

props ocean90 ntwb kadamwhite aaronjorbin
Fixes #31466



git-svn-id: https://develop.svn.wordpress.org/trunk@31557 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-26 17:46:33 +00:00
Dominik Schilling (ocean90) 92952c72bc Update grunt-autoprefixer to 2.2.0
Upstream changes:
* grunt-autoprefixer: https://github.com/nDmitry/grunt-autoprefixer/compare/v1.0.1...v2.2.0
* autoprefixer-core: https://github.com/postcss/autoprefixer-core/compare/2.0.2...5.1.7

fixes #31337.

git-svn-id: https://develop.svn.wordpress.org/trunk@31504 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-22 16:53:27 +00:00
Dominik Schilling (ocean90) 0b1463c6f4 Update grunt-cssjanus to 0.2.4, we no longer need the fork.
Upstream changes:
* https://github.com/cssjanus/cssjanus/compare/v1.0.2...v1.1.2
* https://github.com/cssjanus/grunt-cssjanus/compare/v0.2.2...v0.2.4

fixes #30997.

git-svn-id: https://develop.svn.wordpress.org/trunk@31425 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-11 22:27:53 +00:00
Scott Taylor 4eb88c3d15 Split the media JS files into modules:
* Add a new folder in `wp-includes/js`, `media`
* Create manifest files for `views`, `models`, `grid`, and `audio-video`
* Make `browserify` an `npm` dependency
* Add Grunt tasks for `browserify` and `uglify:media` on `build` and `watch`
* Update the paths loaded for media files in `script-loader`
* All new files were created using `svn cp` from their original location

Please run `npm install`. While developing media JS, you must run `grunt watch`.

See #28510.


git-svn-id: https://develop.svn.wordpress.org/trunk@31373 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-09 00:42:28 +00:00
Andrew Nacin d268aaf37f Update version numbers in trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@30960 602fd350-edb4-49c9-b593-d223f7449a82
2014-12-17 17:37:16 +00:00
Aaron Jorbin 489da6a815 Update grunt-autoprefixer to 1.0.1
Upstream changes https://github.com/nDmitry/grunt-autoprefixer/compare/v0.8.2...v1.0.1

see #30141


git-svn-id: https://develop.svn.wordpress.org/trunk@30067 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 20:16:32 +00:00
Aaron Jorbin d6f0d2c273 Update grunt-contrib-uglify to 0.6.0
Upstream changes https://github.com/gruntjs/grunt-contrib-uglify/compare/v0.5.0...v0.6.0

see #30141


git-svn-id: https://develop.svn.wordpress.org/trunk@30066 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:49:26 +00:00
Aaron Jorbin 2285c9195d Update grunt-contrib-copy to 0.7.0
Upstream changes https://github.com/gruntjs/grunt-contrib-copy/compare/v0.5.0...v0.7.0

see #30141


git-svn-id: https://develop.svn.wordpress.org/trunk@30063 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:34:41 +00:00
Aaron Jorbin e186ad870c Update grunt-contrib-clean to 0.6.0
Upstream changes https://github.com/gruntjs/grunt-contrib-clean/compare/v0.5.0...v0.6.0

see #30141


git-svn-id: https://develop.svn.wordpress.org/trunk@30062 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:30:24 +00:00
Aaron Jorbin 7a9792234a Update grunt-sass to 0.16.0
Upstream changes https://github.com/sindresorhus/grunt-sass/compare/v0.14.0...v0.16.0

see #30141



git-svn-id: https://develop.svn.wordpress.org/trunk@30061 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:26:21 +00:00
Aaron Jorbin bbdab64ed3 Update grunt-contrib-compress to 0.12.0
Upstream changes f0762ba6e2...v0.12.0

see #30141



git-svn-id: https://develop.svn.wordpress.org/trunk@30060 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:20:48 +00:00
Aaron Jorbin 6212d0607d Update grunt-contrib-imagemin to 0.9.1
Upstream changes https://github.com/gruntjs/grunt-contrib-imagemin/compare/v0.4.1...v0.9.1

see #30141



git-svn-id: https://develop.svn.wordpress.org/trunk@30059 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-28 19:11:37 +00:00
Sergey Biryukov 23dd9e11ec 4.1 version bumps.
see [29712], #29537.

git-svn-id: https://develop.svn.wordpress.org/trunk@29713 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-05 19:44:38 +00:00
Dominik Schilling (ocean90) 482a3a7c8a Temporarily switch to a pinned version of grunt-cssjanus. This in turn temporarily pins cssjanus to a patched fork.
fixes #29038.

git-svn-id: https://develop.svn.wordpress.org/trunk@29505 602fd350-edb4-49c9-b593-d223f7449a82
2014-08-15 16:30:21 +00:00
Dominik Schilling (ocean90) 60732933f3 Update the versions of several devDependencies in `package.json`.
Run `npm update` in the project root to receive updates.

props mjbanks, jorbin, netweb.
see #27340.

git-svn-id: https://develop.svn.wordpress.org/trunk@29270 602fd350-edb4-49c9-b593-d223f7449a82
2014-07-22 20:40:08 +00:00
Scott Taylor ce3248c482 Update `phpunit` `grunt` task to not use deprecated `util` package. Run `npm install` or `sudo npm install` to get the updates.
Props jorbin.
Fixes #27343.


git-svn-id: https://develop.svn.wordpress.org/trunk@28796 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-21 19:44:26 +00:00
Andrew Nacin 267c6371fa 4.0 version bumps.
props kworthington.
fixes #27872, #27873.


git-svn-id: https://develop.svn.wordpress.org/trunk@28175 602fd350-edb4-49c9-b593-d223f7449a82
2014-04-21 04:41:57 +00:00
Andrew Nacin b7eaebf9b3 Update grunt-patch-wordpress to 0.2.1 which applies patches with a/ b/ paths.
props jorbin.
see #27023.


git-svn-id: https://develop.svn.wordpress.org/trunk@27848 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-29 10:22:49 +00:00
Andrew Nacin e1c2e01c18 Update grunt-patch-wordpress to 0.2.0.
props jorbin, yoavf, sabreuse.
see #27023.


git-svn-id: https://develop.svn.wordpress.org/trunk@27721 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-25 18:47:24 +00:00
Andrew Nacin 0fc8021977 Developer tools: grunt-patch-wordpress from jorbin, for applying patches directly from Trac.
Mapped to `grunt patch`, which declares usage. Requires `npm install` to install.

props jorbin. props helen, evarlese for help with grammar/instructions.
see #27023.


git-svn-id: https://develop.svn.wordpress.org/trunk@27299 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-26 21:45:55 +00:00
Dominik Schilling (ocean90) 1c9c7b99f5 Build: Update version of grunt-autoprefixer devDependency.
The update includes a new version of Autoprefixer which now supports the `ms-touch-action` prop for IE10.
Run `grunt autoprefixer:core` to re-add the missing props in media-view.css.

git-svn-id: https://develop.svn.wordpress.org/trunk@27236 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-23 10:29:42 +00:00
Andrew Nacin 01b809bf2b Dev/build tools: Use grunt-autoprefixer for CSS vendor prefixes.
We'll be using it for two distinct tasks:
 * Core CSS files will keep prefixes. `grunt autoprefixer:core` will update files directly in src/ as a pre-commit step, rather than doing it on build.
 * Color CSS files will receive prefixes when they are built.

This commit:
 * Adds prefixes we were missing to core CSS.
 * Removes prefixes that we no longer need from core CSS.
 * Removes all prefixes from colors CSS.

props ocean90.
fixes #27078.


git-svn-id: https://develop.svn.wordpress.org/trunk@27174 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 08:29:16 +00:00
Andrew Nacin 877982732a Dev tools: Add `grunt imagemin:core` task for optimizing images pre-commit.
Adds grunt-contrib-imagemin, so an `npm install` will be required.

props jorbin, wonderboymusic for initial patches.
see #25169.


git-svn-id: https://develop.svn.wordpress.org/trunk@27172 602fd350-edb4-49c9-b593-d223f7449a82
2014-02-13 08:00:47 +00:00
Scott Taylor e8797a9b15 Update the versions of several `devDependencies` in `package.json`. `grunt-cssjanus` has been updated to `0.2.2`, we no longer need the fork. Run `npm install` to receive updates for `node_modules` in the project root.
Props yoavf, TobiasBg.
Fixes #26073.



git-svn-id: https://develop.svn.wordpress.org/trunk@27053 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-29 04:42:02 +00:00
Scott Taylor 9b9de4ee1f Add `jsvalidate` as a dependency to the build. To get the new module, run `npm install` in the root of the project.
Fixes #26615.
Props jorbin.



git-svn-id: https://develop.svn.wordpress.org/trunk@26977 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-17 18:14:15 +00:00
Andrew Nacin 146bcccaa2 Update package.json. props TobiasBg. fixes #26629.
git-svn-id: https://develop.svn.wordpress.org/trunk@26940 602fd350-edb4-49c9-b593-d223f7449a82
2014-01-13 18:20:38 +00:00
Andrew Nacin 1ae2cf0efb Temporarily switch to a pinned version of grunt-cssjanus. This in turn temporarily pins cssjanus to a patched fork.
fixes #26181, #26182.


git-svn-id: https://develop.svn.wordpress.org/trunk@26610 602fd350-edb4-49c9-b593-d223f7449a82
2013-12-04 16:38:38 +00:00
Andrew Nacin b0bd982f4c Move to grunt-sass, which which has less bells and whistles than grunt-contrib-sass but also no Ruby dependency.
see #25858, #22862, [26143].


git-svn-id: https://develop.svn.wordpress.org/trunk@26145 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-13 23:37:30 +00:00
Andrew Nacin 0b868783d0 Temporarily remove CSS preprocessing until we can get our Ruby dependency sorted out.
see #25858, #22862.


git-svn-id: https://develop.svn.wordpress.org/trunk@26143 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-13 21:44:04 +00:00
Helen Hou-Sandi e84e1e8791 Merge the color schemes component from MP6. Introduces Light, Blue, and Midnight.
Color scheme selection on your own profile page gives you a preview and autosaves the selection.

Also introduces the usage of a preprocessor for core files, namely Sass. For 3.8, we will not expand its implementation past the color schemes. This does require Ruby as well as Sass 3.3.0+ due to the usage of the sourcemap option.

Note that only the default color scheme is available when running out of src. Use build to test the rest as well as the color picker.

props ryelle, melchoyce, tillkruess, drw158, littlethingsstudio, helen. see #25858, #22862.


git-svn-id: https://develop.svn.wordpress.org/trunk@26137 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-13 19:37:10 +00:00
Andrew Nacin d416108af5 Use CSSJanus via a Grunt task to generate right-to-left CSS.
RTL files are now created on build for core CSS files. These files replace the LTR file completely, rather than being in addition to the existing LTR file.

Benefits:
 * For the user: less CSS is served in RTL, less HTTP requests on the frontend, and less work for the browser.
 * For the core developer: Let the tools do the work.

Notes for core development:
 * The file generation task is `grunt rtl`.
 * `grunt watch` now handles generating RTL files in /build when a CSS file in /src is saved.
 * /src is now locked to LTR. RTL testing must occur via /build. When attempting to run an RTL text direction with /src, an admin notice will display.

Expect RTL bugs. Please report them.

props yoavf.
see #24977.


git-svn-id: https://develop.svn.wordpress.org/trunk@26107 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-12 21:18:45 +00:00
Andrew Nacin 06635ed4cd Add a .jshintrc file and associated jshint grunt task.
This .jshintrc is adopted from the jQuery project, with some basic modifications (such as single quotes instead of double quotes). This pretty closely follows our current JS standards and rather closely resembles our PHP standards, especially the love of whitespace. The major changes are enforcing === and always using braces for if statements.

props kadamwhite, gnarf37, with mattwiebe and carldanley.
see #25187.


git-svn-id: https://develop.svn.wordpress.org/trunk@25960 602fd350-edb4-49c9-b593-d223f7449a82
2013-10-27 21:53:11 +00:00
Andrew Nacin 0e79ec02a6 Use matchdep for Grunt tasks.
props kadamwhite.
fixes #24980.


git-svn-id: https://develop.svn.wordpress.org/trunk@25243 602fd350-edb4-49c9-b593-d223f7449a82
2013-09-04 20:50:29 +00:00
Andrew Nacin 2b1b8427e7 Build tinymce.js.gz using grunt.
props azaozz.
see #25159.


git-svn-id: https://develop.svn.wordpress.org/trunk@25188 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 22:16:43 +00:00
Andrew Nacin 381affa4e4 Add `grunt test` task for QUnit tests.
props kadamwhite.
see #25096.


git-svn-id: https://develop.svn.wordpress.org/trunk@25178 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-30 04:06:34 +00:00
Andrew Nacin b43712e0f7 New develop.svn.wordpress.org repository based on the old core.svn repository.
* All WordPress files move to a src/ directory.
 * New task runner (Grunt), configured to copy a built WordPress to build/.
 * svn:ignore and .gitignore for Gruntfile.js, wp-config.php, and node.js.
 * Remove Akismet external from develop.svn. Still exists in core.svn.
 * Drop minified files from src/. The build process will now generate these.

props koop.
see #24976.

and see http://wp.me/p2AvED-1AI.



git-svn-id: https://develop.svn.wordpress.org/trunk@25001 602fd350-edb4-49c9-b593-d223f7449a82
2013-08-07 05:25:25 +00:00