Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit a8a9e25

Browse files
committed
Merge pull request #32 from PascalPrecht/load-grunt-tasks
chore(grunt): adds load-grunt-tasks module
2 parents 78e2ede + 33a8fc5 commit a8a9e25

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

gruntFile.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@ module.exports = function (grunt) {
22

33
var _ = grunt.util._;
44

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

127
// Default task.
138
grunt.registerTask('default', ['jshint', 'karma:unit']);
@@ -127,4 +122,4 @@ module.exports = function (grunt) {
127122
}
128123
});
129124

130-
};
125+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"grunt-contrib-uglify": "~0.2.7",
1515
"grunt-contrib-watch": "~0.5.3",
1616
"grunt-contrib-copy": "~0.4.1",
17-
"grunt-contrib-connect": "~0.5.0"
17+
"grunt-contrib-connect": "~0.5.0",
18+
"load-grunt-tasks": "~0.2.0"
1819
},
1920
"scripts": {},
2021
"repository": {

0 commit comments

Comments
 (0)