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
This commit is contained in:
Sergey Biryukov 2021-04-03 12:44:38 +00:00
parent 44a066fa57
commit 9c0944fa85

View File

@ -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'
] );
}