Exclude jshint:plugins from both grunt precommit and grunt travis:js.

Props netweb.
Fixes #28464.


git-svn-id: https://develop.svn.wordpress.org/trunk@28873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-06-28 02:08:05 +00:00
parent 572e27c682
commit 373842cdb6

View File

@ -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.