From 7e5c2cb6e8f4fbcb57a4795e8a3e40d7cd706466 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 25 Oct 2013 20:02:04 +0200 Subject: [PATCH] Add load-grunt-tasks package dependency Cherry picked from abfa210adfaee28e2496d7749d675d157d8e6c9d commit --- Gruntfile.js | 9 +-------- package.json | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index d9e94003b..91ee255c9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,4 @@ module.exports = function( grunt ) { - "use strict"; function readOptionalJSON( filepath ) { @@ -138,13 +137,7 @@ module.exports = function( grunt ) { }); // Load grunt tasks from NPM packages - grunt.loadNpmTasks( "grunt-compare-size" ); - grunt.loadNpmTasks( "grunt-git-authors" ); - grunt.loadNpmTasks( "grunt-contrib-watch" ); - grunt.loadNpmTasks( "grunt-contrib-jshint" ); - grunt.loadNpmTasks( "grunt-contrib-uglify" ); - grunt.loadNpmTasks( "grunt-jsonlint" ); - grunt.loadNpmTasks( "grunt-jscs-checker" ); + require( "load-grunt-tasks" )( grunt ); // Integrate jQuery specific tasks grunt.loadTasks( "build/tasks" ); diff --git a/package.json b/package.json index a4e442530..e1db1978f 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "grunt-jscs-checker": "~0.2.3", "grunt-jsonlint": "~1.0.1", "gzip-js": "0.3.2", + "load-grunt-tasks": "~0.2.0", "testswarm": "~1.1.0", "requirejs": "~2.1.9", "which": "~1.0.5"