Skip to content

Commit

Permalink
DRY - Add matchdep module to make it easier to load all Grunt local m…
Browse files Browse the repository at this point in the history
…odules
  • Loading branch information
Zeno Rocha committed Nov 3, 2013
1 parent 31714d0 commit a3f394b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Gruntfile.js
Expand Up @@ -61,11 +61,8 @@ module.exports = function(grunt) {

});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Load all Grunt tasks installed from NPM
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
grunt.registerTask('test', ['jshint', 'jasmine']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,8 @@
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.4.2"
"grunt-contrib-watch": "~0.4.2",
"matchdep": "~0.3.0"
},
"scripts": {
"test": "grunt test --verbose"
Expand Down

0 comments on commit a3f394b

Please sign in to comment.