Add `grunt jshint:themes` for linting Twenty Fourteen and future bundled themes.

props jorbin.
fixes #25907.


git-svn-id: https://develop.svn.wordpress.org/trunk@26110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-11-12 23:41:17 +00:00
parent 9d81ee781e
commit 66634a9075
1 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,16 @@ module.exports = function(grunt) {
],
options: grunt.file.readJSON('tests/qunit/.jshintrc')
},
themes: {
expand: true,
cwd: SOURCE_DIR + 'wp-content/themes',
src: [
'**/*.js',
'!twenty{eleven,twelve,thirteen}/**',
// Third party scripts
'!twentyfourteen/js/html5.js'
]
},
core: {
expand: true,
cwd: SOURCE_DIR,