Skip to content

Commit e0516e7

Browse files
Brian Muenzenmeyergeoffp
authored andcommitted
Merge pull request #17 from joemcgill/master
Load all grunt tasks using matchdep
1 parent 296680a commit e0516e7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/patternengine-node-twig/Gruntfile.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ module.exports = function(grunt) {
5656
}
5757
});
5858

59-
grunt.loadNpmTasks('grunt-contrib-copy');
60-
grunt.loadNpmTasks('grunt-contrib-clean');
61-
grunt.loadNpmTasks('grunt-contrib-watch');
62-
grunt.loadNpmTasks('grunt-contrib-sass');
63-
grunt.loadNpmTasks('grunt-contrib-jshint');
59+
// load all grunt tasks
60+
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
6461

6562
//load the patternlab task
6663
grunt.task.loadTasks('./builder/');

packages/patternengine-node-twig/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"grunt-contrib-sass": "~0.2.2",
99
"grunt-contrib-copy": "~0.4.0",
1010
"grunt-contrib-jshint": "~0.4.0",
11-
"grunt-contrib-clean": "~0.5.0"
11+
"grunt-contrib-clean": "~0.5.0",
12+
"matchdep": "~0.3.0"
1213
}
1314
}

0 commit comments

Comments
 (0)