diff --git a/Gruntfile.js b/Gruntfile.js index 7318281276..2da93900f0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -449,9 +449,12 @@ module.exports = function(grunt) { // Color schemes task. grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']); + // JSHint task. + grunt.registerTask('jshint:corejs', ['jshint:grunt', 'jshint:tests', 'jshint:themes', 'jshint:core']); + // Pre-commit task. grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.', - ['autoprefixer:core', 'imagemin:core', 'jshint', 'qunit:compiled']); + ['autoprefixer:core', 'imagemin:core', 'jshint:corejs', 'qunit:compiled']); // Copy task. grunt.registerTask('copy:all', ['copy:files', 'copy:wp-admin-rtl', 'copy:version']); @@ -475,7 +478,7 @@ module.exports = function(grunt) { grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']); // Travis CI tasks. - grunt.registerTask('travis:js', 'Runs Javascript Travis CI tasks.', [ 'jshint', 'qunit:compiled' ]); + grunt.registerTask('travis:js', 'Runs Javascript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ]); grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', 'phpunit'); // Patch task.