From 9c0944fa85f311e714e2440d6c0839cc19f70d13 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 3 Apr 2021 12:44:38 +0000 Subject: [PATCH] Build/Test Tools: Rename some Grunt tasks to use hyphens instead of camelCase. This makes the task names more consistent with other tasks. Follow-up to [41043], [48096], [50650]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@50651 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 6d0d02922f..87159bec07 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1035,7 +1035,7 @@ module.exports = function(grunt) { } }, replace: { - emojiRegex: { + 'emoji-regex': { options: { patterns: [ { @@ -1107,7 +1107,7 @@ module.exports = function(grunt) { } ] }, - emojiBannerText: { + 'emoji-banner-text': { options: { patterns: [ { @@ -1127,7 +1127,7 @@ module.exports = function(grunt) { } ] }, - sourceMaps: { + 'source-maps': { options: { patterns: [ { @@ -1288,7 +1288,7 @@ module.exports = function(grunt) { ] ); grunt.registerTask( 'precommit:emoji', [ - 'replace:emojiRegex' + 'replace:emoji-regex' ] ); grunt.registerTask( 'precommit', 'Runs test and build tasks in preparation for a commit', function() { @@ -1588,8 +1588,8 @@ module.exports = function(grunt) { 'build:css', 'includes:emoji', 'includes:embed', - 'replace:emojiBannerText', - 'replace:sourceMaps', + 'replace:emoji-banner-text', + 'replace:source-maps', 'verify:build' ] ); }