Skip to content

Commit d990b8e

Browse files
committed
chore(grunt): adds load-grunt-tasks module
makes it way more easier to maintain grunt plugins
1 parent ae36fba commit d990b8e

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Gruntfile.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
/*global module:false*/
22
module.exports = function (grunt) {
33

4-
grunt.loadNpmTasks('grunt-contrib-clean');
5-
grunt.loadNpmTasks('grunt-contrib-concat');
6-
grunt.loadNpmTasks('grunt-contrib-uglify');
7-
grunt.loadNpmTasks('grunt-contrib-jshint');
8-
grunt.loadNpmTasks('grunt-contrib-watch');
9-
grunt.loadNpmTasks('grunt-contrib-connect');
10-
grunt.loadNpmTasks('grunt-karma');
4+
require('load-grunt-tasks')(grunt);
115

126
// Project configuration.
137
grunt.initConfig({

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"karma-script-launcher": "~0.1.0",
4848
"karma-coffee-preprocessor": "~0.1.0",
4949
"karma": "~0.10.1",
50-
"karma-phantomjs-launcher": "~0.1.0"
50+
"karma-phantomjs-launcher": "~0.1.0",
51+
"load-grunt-tasks": "~0.2.0"
5152
}
5253
}

0 commit comments

Comments
 (0)