From 473d4ec02fe52e3aae9c78de30bc4bc5e2b1430e Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Sun, 23 Aug 2015 22:17:20 +0900 Subject: [PATCH] update dependencies and devDependencies --- index.js | 3 +-- package.json | 28 ++++++++++++++-------------- test.js | 1 - 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/index.js b/index.js index 9b019a0..6940fca 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,6 @@ module.exports = function gulpGhPages(options) { files.push(file); cb(null, file); - }, flush: function publish(cb) { if (files.length === 0) { @@ -112,7 +111,7 @@ module.exports = function gulpGhPages(options) { return wrapPromise(function(resolve, reject) { var destStream = vinylFs.dest(repo._repo.path) .on('error', reject) - .on('end', function() { + .on('finish', function() { resolve(repo); }); diff --git a/package.json b/package.json index afd456a..11d222b 100644 --- a/package.json +++ b/package.json @@ -29,31 +29,31 @@ "lib" ], "scripts": { - "pretest": "eslint --config node_modules/@shinnn/eslintrc-node/rc.json --env mocha --rule 'no-underscore-dangle: 0' --rule 'camelcase: 0' index.js test.js lib", - "test": "mocha test.js --timeout 50000", - "test-only": "mocha test.js --timeout 50000", + "pretest": "eslint --config @shinnn/node-legacy --env mocha --rule 'no-underscore-dangle: 0' --rule 'camelcase: 0' index.js test.js lib", + "test": "mocha test.js --timeout 50000 --full-trace", + "test-only": "mocha test.js --timeout 50000 --full-trace", "coverage": "istanbul cover _mocha test.js -x=test.js -- --timeout 50000", "coveralls": "${npm_package_scripts_coverage} && istanbul-coveralls" }, "dependencies": { - "gift": "^0.6.0", + "gift": "^0.6.1", "gulp-util": "^3.0.6", - "readable-stream": "^2.0.1", - "rimraf": "^2.4.1", - "vinyl-fs": "^1.0.0", + "readable-stream": "^2.0.2", + "rimraf": "^2.4.3", + "vinyl-fs": "^2.1.1", "wrap-promise": "^1.0.1" }, "devDependencies": { - "@shinnn/eslintrc-node": "^1.0.2", - "eslint": "^0.24.0", + "@shinnn/eslint-config-node-legacy": "^1.0.0", + "eslint": "^1.6.0", "graceful-fs": "^4.1.2", - "istanbul": "^0.3.17", + "istanbul": "^0.3.22", "istanbul-coveralls": "^1.0.3", "log-symbols": "^1.0.2", - "mocha": "^2.2.5", + "mocha": "^2.3.3", "node-uuid": "^1.4.3", - "octonode": "^0.6.18", - "read-remove-file": "^2.0.0", - "vinyl": "^0.5.0" + "octonode": "^0.7.3", + "read-remove-file": "^3.0.0", + "vinyl": "^1.0.0" } } diff --git a/test.js b/test.js index 6c45711..c63ba5b 100644 --- a/test.js +++ b/test.js @@ -46,7 +46,6 @@ before(function(done) { client = github.client(accessToken); remoteUrl = 'https://' + accessToken + '@github.com/' + tmpRepoName + '.git'; done(); - } else { var accessTokenFile = 'gh-access-token.txt';