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:
parent
572e27c682
commit
373842cdb6
@ -449,9 +449,12 @@ module.exports = function(grunt) {
|
|||||||
// Color schemes task.
|
// Color schemes task.
|
||||||
grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
|
grunt.registerTask('colors', ['sass:colors', 'autoprefixer:colors']);
|
||||||
|
|
||||||
|
// JSHint task.
|
||||||
|
grunt.registerTask('jshint:corejs', ['jshint:grunt', 'jshint:tests', 'jshint:themes', 'jshint:core']);
|
||||||
|
|
||||||
// Pre-commit task.
|
// Pre-commit task.
|
||||||
grunt.registerTask('precommit', 'Runs front-end dev/test tasks in preparation for a commit.',
|
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.
|
// Copy task.
|
||||||
grunt.registerTask('copy:all', ['copy:files', 'copy:wp-admin-rtl', 'copy:version']);
|
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']);
|
grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']);
|
||||||
|
|
||||||
// Travis CI tasks.
|
// 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');
|
grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', 'phpunit');
|
||||||
|
|
||||||
// Patch task.
|
// Patch task.
|
||||||
|
Loading…
Reference in New Issue
Block a user