Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 72e5b71

Browse files
committed
feat(grunt): use load-grunt-tasks
2 parents f2ef19b + 8ee857e commit 72e5b71

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gruntFile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
module.exports = function(grunt) {
44

5-
grunt.loadNpmTasks('grunt-karma');
6-
grunt.loadNpmTasks('grunt-contrib-jshint');
5+
require('load-grunt-tasks')(grunt);
76

87
// Default task.
98
grunt.registerTask('default', ['jshint', 'karma']);
@@ -56,4 +55,4 @@ module.exports = function(grunt) {
5655
}
5756
});
5857

59-
};
58+
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"karma-phantomjs-launcher": "0.1.x",
2121
"karma-requirejs": "0.2.x",
2222
"karma-script-launcher": "0.1.x",
23+
"load-grunt-tasks": "0.2.x",
2324
"requirejs": "2.1.x"
2425
},
2526
"scripts": {},

0 commit comments

Comments
 (0)