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:
parent
9d81ee781e
commit
66634a9075
10
Gruntfile.js
10
Gruntfile.js
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user