From 66634a9075c55f9ef85914ebf4d763aa62c23239 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 12 Nov 2013 23:41:17 +0000 Subject: [PATCH] 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 --- Gruntfile.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 44e29d8b88..534493c4b0 100644 --- a/Gruntfile.js +++ b/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,