From bec5838166f861e2b4c9c8c77ebfd46243387906 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 Oct 2015 00:00:00 +0000 Subject: [PATCH] Build Tools: upgrade `grunt-browserify` to `~4.0.0` and remove the `watch` task for `browserify`, which has its own internal watcher. Run `npm install` to update. Props iseulde. Fixes #31911. git-svn-id: https://develop.svn.wordpress.org/trunk@34888 602fd350-edb4-49c9-b593-d223f7449a82 --- Gruntfile.js | 11 +---------- package.json | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 25069f995d..a3c1a5d244 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -545,16 +545,6 @@ module.exports = function(grunt) { interval: 2000 } }, - browserify: { - files: [ - SOURCE_DIR + 'wp-includes/js/media/**/*.js', - '!' + SOURCE_DIR + 'wp-includes/js/media/*.manifest.js' - ], - tasks: ['browserify', 'copy:dynamic'], - options: { - spawn: false - } - }, config: { files: 'Gruntfile.js' }, @@ -686,6 +676,7 @@ module.exports = function(grunt) { } src = [ path.relative( SOURCE_DIR, filepath ) ]; + if ( action === 'deleted' ) { grunt.config( [ 'clean', 'dynamic', 'src' ], src ); } else { diff --git a/package.json b/package.json index a2a8fd6c8d..3c608c71b0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "devDependencies": { "autoprefixer-core": "~5.2.1", "grunt": "~0.4.5", - "grunt-browserify": "~3.8.0", + "grunt-browserify": "~4.0.0", "grunt-contrib-clean": "~0.6.0", "grunt-contrib-compress": "~0.13.0", "grunt-contrib-concat": "~0.5.1",