mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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:
@@ -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'
|
||||
] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user