825a3048 by Adam Heath

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

1 parent 4c9067a3
......@@ -8,6 +8,7 @@
module.exports = function (grunt) {
var _ = require('lodash');
require('load-grunt-tasks')(grunt);
grunt.registerTask('revconfig', function revconfig() {
var prefix = grunt.template.process('dist/build/scripts/');
var pattern = prefix + '**/*.{js,html}';
......@@ -194,7 +195,6 @@ module.exports = function (grunt) {
});
}
grunt.loadNpmTasks('grunt-monty-python');
if (mpConfig.jshint) {
initConfig.jshint = {
options: mpConfig.jshint.options,
......@@ -215,8 +215,8 @@ module.exports = function (grunt) {
},
}
};
if (common.jshint.all) {
initConfig.jshint.all = initConfig.jshint.all.concat(common.jshint.all);
if (mpConfig.jshint.all) {
initConfig.jshint.all = initConfig.jshint.all.concat(mpConfig.jshint.all);
}
checkList.push('jshint');
}
......
......@@ -29,6 +29,7 @@
"grunt-rev": "~0",
"grunt-svgmin": "~0",
"grunt-usemin": "~2",
"load-grunt-tasks": "~0",
"lodash": "~2",
"punch": "~0.5.46",
"punch-html-fragment-content-parser": "^0.5.1"
......