825a3048 by Adam Heath

Make use of load-grunt-tasks instead of doing things ourself.

1 parent 4c9067a3
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
8 module.exports = function (grunt) { 8 module.exports = function (grunt) {
9 var _ = require('lodash'); 9 var _ = require('lodash');
10 10
11 require('load-grunt-tasks')(grunt);
11 grunt.registerTask('revconfig', function revconfig() { 12 grunt.registerTask('revconfig', function revconfig() {
12 var prefix = grunt.template.process('dist/build/scripts/'); 13 var prefix = grunt.template.process('dist/build/scripts/');
13 var pattern = prefix + '**/*.{js,html}'; 14 var pattern = prefix + '**/*.{js,html}';
...@@ -194,7 +195,6 @@ module.exports = function (grunt) { ...@@ -194,7 +195,6 @@ module.exports = function (grunt) {
194 }); 195 });
195 } 196 }
196 197
197 grunt.loadNpmTasks('grunt-monty-python');
198 if (mpConfig.jshint) { 198 if (mpConfig.jshint) {
199 initConfig.jshint = { 199 initConfig.jshint = {
200 options: mpConfig.jshint.options, 200 options: mpConfig.jshint.options,
...@@ -215,8 +215,8 @@ module.exports = function (grunt) { ...@@ -215,8 +215,8 @@ module.exports = function (grunt) {
215 }, 215 },
216 } 216 }
217 }; 217 };
218 if (common.jshint.all) { 218 if (mpConfig.jshint.all) {
219 initConfig.jshint.all = initConfig.jshint.all.concat(common.jshint.all); 219 initConfig.jshint.all = initConfig.jshint.all.concat(mpConfig.jshint.all);
220 } 220 }
221 checkList.push('jshint'); 221 checkList.push('jshint');
222 } 222 }
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
29 "grunt-rev": "~0", 29 "grunt-rev": "~0",
30 "grunt-svgmin": "~0", 30 "grunt-svgmin": "~0",
31 "grunt-usemin": "~2", 31 "grunt-usemin": "~2",
32 "load-grunt-tasks": "~0",
32 "lodash": "~2", 33 "lodash": "~2",
33 "punch": "~0.5.46", 34 "punch": "~0.5.46",
34 "punch-html-fragment-content-parser": "^0.5.1" 35 "punch-html-fragment-content-parser": "^0.5.1"
......