59c643b8 by Adam Heath

Fix jshint.all and jscs.all processing.

1 parent 500cc465
......@@ -35,6 +35,9 @@ module.exports = function(grunt) {
options: {
validateIndentation: 4,
},
all: [
'grunt-monty-python.js',
],
};
config.punch = {
};
......
......@@ -253,7 +253,7 @@ module.exports = function (grunt) {
_.each(arguments, function(item) {
if (_.isArray(item)) {
items = items.concat(item);
} else if (item != null) {
} else if (item !== null) {
items.push(item);
}
});
......@@ -265,9 +265,11 @@ module.exports = function (grunt) {
}
initConfig[name] = {
options: mpConfig[name].options,
all: [
'Gruntfile.js',
],
all: {
files: [
{src: 'Gruntfile.js'},
],
},
main: {
options: _.extend({}, mpConfig[name].browserOptions, browserOptions),
files: makeFilesSpec('', mpConfig.mainDirs),
......@@ -281,7 +283,7 @@ module.exports = function (grunt) {
files: makeFilesSpec(mpConfig.viewDir, mpConfig.viewDirs),
},
};
jscheckerAddExtra(mpConfig[name].all, initConfig[name], 'all');
jscheckerAddExtra(mpConfig[name].all, initConfig[name].all.files, 'src');
jscheckerAddExtra(mpConfig[name].main, initConfig[name].main.files, 'src');
jscheckerAddExtra(mpConfig[name].model, initConfig[name].model.files, 'src');
jscheckerAddExtra(mpConfig[name].view, initConfig[name].view.files, 'src');
......@@ -742,7 +744,7 @@ module.exports = function (grunt) {
}
fs.renameSync('dist/build', 'dist/' + target);
if (fs.existsSync('dist/next-current')) {
fs.unlinkSync('dist/next-current');
fs.unlinkSync('dist/next-current');
}
fs.symlinkSync(target, 'dist/next-current');
fs.renameSync('dist/next-current', 'dist/current');
......