From 613089b066283ee5bda9f6825a0e826b442b9306 Mon Sep 17 00:00:00 2001 From: Andrew Varnerin Date: Tue, 17 Dec 2013 20:05:14 -0500 Subject: [PATCH] chore(grunt): add load-grunt-tasks module Clean up repetitive loading of grunt tasks Closes #120 --- Gruntfile.js | 5 +---- package.json | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 1e93fc9..f214842 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,10 +4,7 @@ module.exports = function (grunt) { var initConfig; // Loading external tasks - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-karma'); - grunt.loadNpmTasks('grunt-conventional-changelog'); + require('load-grunt-tasks')(grunt); // Project configuration. initConfig = { diff --git a/package.json b/package.json index e4dd35f..9b83136 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "grunt-contrib-watch": "~0.5.3", "grunt-karma": "~0.6.2", "karma": "~0.10.2", - "grunt-conventional-changelog": "~1.0.0" + "grunt-conventional-changelog": "~1.0.0", + "load-grunt-tasks": "~0.2.0" } }