diff --git a/Makefile b/Makefile deleted file mode 100644 index 1ba96b9..0000000 --- a/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -specs := $(shell find ./test -name '*.test.js' ! -path "*node_modules/*") -reporter = spec -opts = -test: - @node_modules/.bin/mocha --reporter ${reporter} ${opts} ${specs} - - -lint: - @node_modules/.bin/jshint lib/client.js lib/scp.js index.js bin/scp2 - -out_dir = _site -out_file = ${out_dir}/coverage.html - -coverage: - @mkdir -p ${out_dir} - @rm -fr lib-cov - @node_modules/.bin/jscoverage lib lib-cov - @SCP2_COVERAGE=1 $(MAKE) test opts=lib-cov reporter=html-cov --no-print-directory > ${out_file} - @echo - @rm -fr lib-cov - @echo "Built Report to ${out_file}" - @echo - -clean: - @rm -fr _site - -.PHONY: build test lint coverage diff --git a/bin/scp2 b/bin/scp2 index 3883168..dab1c09 100755 --- a/bin/scp2 +++ b/bin/scp2 @@ -1,7 +1,6 @@ #!/usr/bin/env node var fs = require('fs'); -var path = require('path'); var client = require('../'); main(process.argv.slice()); @@ -127,9 +126,9 @@ function helpMessage() { function versionMessage() { var pkg = require('../package.json'); var format = require('util').format; - console.log() + console.log(); console.log(format(' %s %s (%s)', pkg.name, pkg.version, process.platform)); - console.log() + console.log(); process.exit(); } diff --git a/lib/client.js b/lib/client.js index f73981d..ae221b8 100644 --- a/lib/client.js +++ b/lib/client.js @@ -242,7 +242,7 @@ Client.prototype.write = function(options, callback) { options.source, path.basename(options.source), { - step + step: step }, function(err) { step.cancel(); diff --git a/package.json b/package.json index 5e88870..014a98d 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "ssh2" ], "dependencies": { - "async": "~0.9.0", - "glob": "~7.0.3", - "lodash": "~4.17.11", - "ssh2": "^0.6.0" + "async": "~3.2.0", + "glob": "~7.1.6", + "lodash": "~4.17.15", + "ssh2": "^0.8.9" }, "repository": { "type": "git", @@ -25,15 +25,15 @@ "url": "https://github.com/lepture/node-scp2/issues" }, "devDependencies": { - "expect.js": "0", - "jshint": "2", - "mocha": "2", - "jscoverage": "^0.5.9" + "expect.js": "^0.3.1", + "jshint": "~2.11.1", + "mocha": "~7.1.2" }, "bin": { "scp2": "bin/scp2" }, "scripts": { - "test": "make test" + "test": "mocha --reporter spec test/client.test.js", + "lint": "jshint lib/client.js lib/scp.js index.js bin/scp2" } }