From 0fc8021977e29dd2552d2a8327a2b74004cc2ed9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 26 Feb 2014 21:45:55 +0000 Subject: [PATCH] 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 --- Gruntfile.js | 3 +++ package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index b910622655..d61ac51ef8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -428,6 +428,9 @@ module.exports = function(grunt) { grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']); grunt.registerTask('travis', ['jshint', 'test']); + // Patch task. + grunt.renameTask('patch_wordpress', 'patch'); + // Default task. grunt.registerTask('default', ['build']); diff --git a/package.json b/package.json index 67d74bf125..35dc5e8e44 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "grunt-autoprefixer": "~0.7.1", "grunt-jsvalidate": "~0.2.2", "grunt-contrib-imagemin" : "~0.4.1", + "grunt-patch-wordpress" : "~0.1.2", "matchdep": "~0.3.0" } }