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

Commit 613089b

Browse files
committed
chore(grunt): add load-grunt-tasks module
Clean up repetitive loading of grunt tasks Closes #120
1 parent 262528a commit 613089b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Gruntfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ module.exports = function (grunt) {
44
var initConfig;
55

66
// Loading external tasks
7-
grunt.loadNpmTasks('grunt-contrib-jshint');
8-
grunt.loadNpmTasks('grunt-contrib-watch');
9-
grunt.loadNpmTasks('grunt-karma');
10-
grunt.loadNpmTasks('grunt-conventional-changelog');
7+
require('load-grunt-tasks')(grunt);
118

129
// Project configuration.
1310
initConfig = {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"grunt-contrib-watch": "~0.5.3",
2525
"grunt-karma": "~0.6.2",
2626
"karma": "~0.10.2",
27-
"grunt-conventional-changelog": "~1.0.0"
27+
"grunt-conventional-changelog": "~1.0.0",
28+
"load-grunt-tasks": "~0.2.0"
2829
}
2930
}

0 commit comments

Comments
 (0)