Build Tools: Rename the `precommit:core` task to `precommit:base` for clarification.

`precommit:base` runs only the `imagemin:core` task.

Fixes #35557.

git-svn-id: https://develop.svn.wordpress.org/trunk@36955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
ocean90 2016-03-10 20:13:29 +00:00
parent 3046ac771c
commit 72f82072d4
1 changed files with 3 additions and 3 deletions

View File

@ -668,7 +668,7 @@ module.exports = function(grunt) {
grunt.task.run( '_' + this.nameArgs );
} );
grunt.registerTask( 'precommit:core', [
grunt.registerTask( 'precommit:base', [
'imagemin:core'
] );
@ -692,7 +692,7 @@ module.exports = function(grunt) {
// Figure out what tasks to run based on what files have been modified.
function enqueueTestingTasksForModifiedFiles( filesModified ) {
var taskList = ['precommit:core'];
var taskList = ['precommit:base'];
if ( /.*\.js/.test( filesModified ) ) {
grunt.log.write( 'JavaScript source files modified. JavaScript tests will be run.\n');
taskList = taskList.concat( ['precommit:js'] );
@ -772,7 +772,7 @@ module.exports = function(grunt) {
'precommit:php',
'precommit:js',
'precommit:css',
'precommit:core',
'precommit:base',
'build'
] );