Skip to content

Commit

Permalink
Use load-grunt-tasks module to load grunt tasks easily.
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Dec 18, 2013
1 parent 16b6b0f commit 5d83486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions Gruntfile.js
@@ -1,14 +1,7 @@
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');

(function () {
var taskName;
for(taskName in pkg.devDependencies) {
if(taskName.substring(0, 6) === 'grunt-') {
grunt.loadNpmTasks(taskName);
}
}
})();
require('load-grunt-tasks')(grunt);

grunt.initConfig({
pkg: pkg,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -38,7 +38,8 @@
"grunt-bump": "~0.0.13",
"mocha-lcov-reporter": "0.0.1",
"blanket": "~1.1.5",
"coveralls": "~2.6.0"
"coveralls": "~2.6.0",
"load-grunt-tasks": "~0.2.1"
},
"licenses": [
{
Expand Down

0 comments on commit 5d83486

Please sign in to comment.