From 5f2b8fb8313fc9a83221e93e3c8210a5ae2783a8 Mon Sep 17 00:00:00 2001 From: Gary Katsevman Date: Fri, 8 Feb 2013 17:08:31 -0500 Subject: [PATCH] update gruntfile to pass jshint --- Gruntfile.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f0dfdfc94..5e92906f2 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -14,9 +14,9 @@ module.exports = function(grunt) { // npm install https://github.com/gruntjs/grunt-contrib-jshint/archive/7fd70e86c5a8d489095fa81589d95dccb8eb3a46.tar.gz jshint: { src: { - src: ["src/js/*.js", "Gruntfile.js", "test/unit/*.js"], + src: ['src/js/*.js', 'Gruntfile.js', 'test/unit/*.js'], options: { - jshintrc: ".jshintrc" + jshintrc: '.jshintrc' } } }, @@ -39,8 +39,8 @@ module.exports = function(grunt) { minified: ['test/minified.html'] }, watch: { - files: [ "src/**/*.js", "test/unit/*.js" ], - tasks: "dev" + files: [ 'src/**/*.js', 'test/unit/*.js' ], + tasks: 'dev' } // Copy is broken. Waiting for an update to use. // copy: { @@ -55,11 +55,11 @@ module.exports = function(grunt) { // }, }); - grunt.loadNpmTasks("grunt-contrib-jshint"); - grunt.loadNpmTasks("grunt-contrib-qunit"); - grunt.loadNpmTasks("grunt-contrib-watch"); - grunt.loadNpmTasks("grunt-contrib-clean"); - grunt.loadNpmTasks("grunt-contrib-copy"); + grunt.loadNpmTasks('grunt-contrib-jshint'); + grunt.loadNpmTasks('grunt-contrib-qunit'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-contrib-copy'); // Default task. grunt.registerTask('default', ['jshint', 'build', 'minify', 'dist']); @@ -86,10 +86,10 @@ module.exports = function(grunt) { path:['src/js/'], dep:[], exclude:[], - output_mode:'list', + output_mode:'list' }, function(err,results){ if (err) { - grunt.warn({ message: err }) + grunt.warn({ message: err }); grunt.log.writeln(err); done(false); } @@ -122,7 +122,7 @@ module.exports = function(grunt) { grunt.file.write(dest, ''); if (this.data.sourcelist) { - files = files.concat(grunt.file.read(this.data.sourcelist).split(',')) + files = files.concat(grunt.file.read(this.data.sourcelist).split(',')); } if (this.file.src) { files = files.concat(this.file.src);