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"