From 6a67ac7139fae44cf7c92bf281a3ccc538e226a4 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Mon, 23 Nov 2015 20:26:35 -0800 Subject: [PATCH] Updating devDeps and fixing jscs notices --- internal-tasks/bump.js | 2 +- lib/grunt.js | 2 +- package.json | 8 ++++---- test/grunt/cli_test.js | 2 +- test/grunt/config_test.js | 2 +- test/grunt/event_test.js | 2 +- test/grunt/file_test.js | 4 ++-- test/grunt/option_test.js | 8 ++++---- test/grunt/template_test.js | 2 +- test/util/task_test.js | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/internal-tasks/bump.js b/internal-tasks/bump.js index 25743d706..fb836442c 100644 --- a/internal-tasks/bump.js +++ b/internal-tasks/bump.js @@ -141,7 +141,7 @@ module.exports = function(grunt) { grunt.verbose.writeln('Not actually running: ' + cmd); } else { grunt.verbose.writeln('Running: ' + cmd); - var result = shell.exec(cmd, {silent:true}); + var result = shell.exec(cmd, {silent: true}); if (result.code !== 0) { grunt.log.error('Error (' + result.code + ') ' + result.output); } diff --git a/lib/grunt.js b/lib/grunt.js index 9bd1a7e96..18af7f3dc 100644 --- a/lib/grunt.js +++ b/lib/grunt.js @@ -161,5 +161,5 @@ grunt.tasks = function(tasks, options, done) { tasks.forEach(function(name) { task.run(name); }); // Run tasks async internally to reduce call-stack, per: // https://github.com/gruntjs/grunt/pull/1026 - task.start({asyncDone:true}); + task.start({asyncDone: true}); }; diff --git a/package.json b/package.json index 178200e2b..41a0f82d8 100644 --- a/package.json +++ b/package.json @@ -57,12 +57,12 @@ }, "devDependencies": { "difflet": "~0.2.3", - "grunt-contrib-jshint": "~0.6.4", + "grunt-contrib-jshint": "~0.11.3", "grunt-contrib-nodeunit": "~0.4.1", - "grunt-contrib-watch": "~0.5.3", - "grunt-jscs": "~1.5.0", + "grunt-contrib-watch": "~0.6.1", + "grunt-jscs": "~2.3.0", "semver": "2.1.0", - "shelljs": "~0.2.5", + "shelljs": "~0.5.3", "temporary": "~0.0.4" }, "files": [ diff --git a/test/grunt/cli_test.js b/test/grunt/cli_test.js index 4c1e9a55f..beb5036d7 100644 --- a/test/grunt/cli_test.js +++ b/test/grunt/cli_test.js @@ -9,7 +9,7 @@ function getOptionValues(str) { return matches ? JSON.parse(matches[1]) : {}; } -exports['cli'] = { +exports.cli = { '--debug taskname': function(test) { test.expect(1); grunt.util.spawn({ diff --git a/test/grunt/config_test.js b/test/grunt/config_test.js index ac6fa1785..6da5422e2 100644 --- a/test/grunt/config_test.js +++ b/test/grunt/config_test.js @@ -2,7 +2,7 @@ var grunt = require('../../lib/grunt'); -exports['config'] = { +exports.config = { setUp: function(done) { this.origData = grunt.config.data; grunt.config.init({ diff --git a/test/grunt/event_test.js b/test/grunt/event_test.js index 0d7235316..c8359dc85 100644 --- a/test/grunt/event_test.js +++ b/test/grunt/event_test.js @@ -2,7 +2,7 @@ var grunt = require('../../lib/grunt'); -exports['event'] = function(test) { +exports.event = function(test) { test.expect(3); grunt.event.on('test.foo', function(a, b, c) { // This should get executed once (emit test.foo). diff --git a/test/grunt/file_test.js b/test/grunt/file_test.js index f99ce6602..6c4ffa9f6 100644 --- a/test/grunt/file_test.js +++ b/test/grunt/file_test.js @@ -383,7 +383,7 @@ var compareFiles = function(filepath1, filepath2) { return compareBuffers(fs.readFileSync(filepath1), fs.readFileSync(filepath2)); }; -exports['file'] = { +exports.file = { setUp: function(done) { this.defaultEncoding = grunt.file.defaultEncoding; grunt.file.defaultEncoding = 'utf8'; @@ -665,7 +665,7 @@ exports['file'] = { test.equal(grunt.file.delete(path.join(outsidecwd, 'test.js')), false, 'should not delete anything outside the cwd.'); test.ok(this.warnCount, 'should issue a warning when deleting outside working directory'); - test.ok(grunt.file.delete(path.join(outsidecwd), {force:true}), 'should delete outside cwd when using the --force.'); + test.ok(grunt.file.delete(path.join(outsidecwd), {force: true}), 'should delete outside cwd when using the --force.'); test.equal(grunt.file.exists(outsidecwd), false, 'file outside cwd should have been deleted when using the --force.'); grunt.file.setBase(oldBase); diff --git a/test/grunt/option_test.js b/test/grunt/option_test.js index 2e7bcf5e0..de84799ea 100644 --- a/test/grunt/option_test.js +++ b/test/grunt/option_test.js @@ -2,7 +2,7 @@ var grunt = require('../../lib/grunt'); -exports['option'] = { +exports.option = { setUp: function(done) { grunt.option.init(); done(); @@ -13,15 +13,15 @@ exports['option'] = { }, 'option.init': function(test) { test.expect(1); - var expected = {foo:'bar', bool:true, 'bar':{foo:'bar'}}; + var expected = {foo: 'bar', bool: true, 'bar': {foo: 'bar'}}; test.deepEqual(grunt.option.init(expected), expected); test.done(); }, 'option': function(test) { test.expect(4); test.equal(grunt.option('foo', 'bar'), grunt.option('foo')); - grunt.option('foo', {foo:'bar'}); - test.deepEqual(grunt.option('foo'), {foo:'bar'}); + grunt.option('foo', {foo: 'bar'}); + test.deepEqual(grunt.option('foo'), {foo: 'bar'}); test.equal(grunt.option('no-there'), false); grunt.option('there', false); test.equal(grunt.option('no-there'), true); diff --git a/test/grunt/template_test.js b/test/grunt/template_test.js index b7903ac3d..e188b4738 100644 --- a/test/grunt/template_test.js +++ b/test/grunt/template_test.js @@ -2,7 +2,7 @@ var grunt = require('../../lib/grunt'); -exports['template'] = { +exports.template = { 'process': function(test) { test.expect(4); var obj = { diff --git a/test/util/task_test.js b/test/util/task_test.js index 9c96cc308..1265ade8e 100644 --- a/test/util/task_test.js +++ b/test/util/task_test.js @@ -26,7 +26,7 @@ exports['new Task'] = { } }; -exports['Tasks'] = { +exports.Tasks = { setUp: function(done) { result.reset(); this.task = requireTask().create();