From d8a66a46cd31ed2466c8387d3737f790c4dd36bb Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 3 Dec 2013 18:07:38 +0100 Subject: [PATCH] chore(grunt): adds load-grunt-tasks module makes it way more easier to maintain grunt plugin loading --- Gruntfile.js | 6 +----- package.json | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 04cbce7d..be8ee5d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -65,11 +65,7 @@ module.exports = function(grunt) { }); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-exec'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-notify'); + require('load-grunt-tasks')(grunt); grunt.registerTask('build', ['jshint', 'uglify']); grunt.registerTask('test', ['exec:casperjs']); diff --git a/package.json b/package.json index fe577c83..d630265e 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "grunt-notify": "~0.2.7", "grunt-contrib-watch": "~0.5.1", "grunt-contrib-jshint": "~0.6.2", - "grunt-exec": "~0.4.2" + "grunt-exec": "~0.4.2", + "load-grunt-tasks": "~0.2.0" } }