From 1805248438ed38e31080f666be73bd37e0bd26c2 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 29 Jan 2014 04:44:31 +0000 Subject: [PATCH] Ignore `.js` files in `wp-content` when running `jsvalidate` during `grunt build`. See [26977]. Props TobiasBg. Fixes #26615. git-svn-id: https://develop.svn.wordpress.org/trunk@27054 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 1e3ae614e7..6354ab57ac 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -303,9 +303,12 @@ module.exports = function(grunt) { }, build: { files: { - src: BUILD_DIR + '/**/*.js' + src: [ + BUILD_DIR + '/**/*.js', + '!' + BUILD_DIR + '/wp-content/**/*.js', + ] } - } + } }, watch: { all: {