Comparing version 0.17.5 to 0.17.6
@@ -30,2 +30,5 @@ var request = require("request") | ||
default: "yes", | ||
terminal: req.config.terminal, | ||
output: req.config.output, | ||
input: req.config.input | ||
}, function(err, reply){ | ||
@@ -32,0 +35,0 @@ if (reply == "yes" || reply == "y" || reply == "Y") { |
@@ -30,2 +30,5 @@ var helpers = require("./util/helpers") | ||
edit: true, | ||
terminal: req.config.terminal, | ||
output: req.config.output, | ||
input: req.config.input | ||
}, function(err, domain){ | ||
@@ -32,0 +35,0 @@ if (domain === undefined) return abort("Please try again with a valid domain name.") |
@@ -30,2 +30,5 @@ var path = require("path") | ||
edit: true, | ||
terminal: req.config.terminal, | ||
output: req.config.output, | ||
input: req.config.input | ||
}, function(err, projectPath){ | ||
@@ -32,0 +35,0 @@ if (projectPath === undefined) return abort("publishing not initiated.") |
@@ -123,2 +123,5 @@ var request = require("request") | ||
edit: true, | ||
terminal: req.config.terminal, | ||
output: req.config.output, | ||
input: req.config.input | ||
}, function(err, pem){ | ||
@@ -125,0 +128,0 @@ if (pem === undefined) return abort("no PEM file provided") |
{ | ||
"name": "surge", | ||
"version": "0.17.5", | ||
"version": "0.17.6", | ||
"description": "CDN for front-end developers", | ||
@@ -5,0 +5,0 @@ "author": "Brock Whitten <brock@chloi.io>", |
@@ -20,3 +20,3 @@ # surge(.sh) | ||
``` | ||
Surge – Single-command web publishing. (v0.17.4) | ||
Surge – Single-command web publishing. (v0.17.6) | ||
@@ -23,0 +23,0 @@ Usage: |
var should = require('should') | ||
var minimist = require('minimist')(process.argv.slice(2)) | ||
var yargs = require('yargs') | ||
var commander = require('commander') | ||
var nixt = require('nixt') | ||
var Surge = require('../') | ||
var surge = new Surge | ||
var pkg = require('../package.json') | ||
var minimist = 'node ./test/fixtures/bin/minimist.js' | ||
var yargs = 'node ./test/fixtures/bin/yargs.js' | ||
var hooks = {} | ||
@@ -29,14 +30,25 @@ | ||
it('minimist', function (done) { | ||
var program = minimist | ||
should(program._.length).equal(1) | ||
done() | ||
nixt({ colors: false }) | ||
.run(minimist + ' login') | ||
.on(/.*email:.*/).respond('kenneth+test@chloi.io\n') | ||
.on(/.*password:.*/).respond('12345\n') | ||
.expect(function (result) { | ||
should(result.stdout).match(/Logged in as kenneth/) | ||
should(result.stdout).match(/surge.sh/) | ||
}) | ||
.exec(minimist + ' logout') | ||
.end(done) | ||
}) | ||
it('yargs', function (done) { | ||
var program = yargs | ||
program | ||
.command('teardown', 'Login to Surge.', surge.login(hooks)) | ||
.argv | ||
should(program.argv._.length).equal(1) | ||
done() | ||
nixt({ colors: false }) | ||
.run(yargs + ' login') | ||
.on(/.*email:.*/).respond('kenneth+test@chloi.io\n') | ||
.on(/.*password:.*/).respond('12345\n') | ||
.expect(function (result) { | ||
should(result.stdout).match(/Logged in as kenneth/) | ||
should(result.stdout).match(/surge.sh/) | ||
}) | ||
.exec(yargs + ' logout') | ||
.end(done) | ||
}) | ||
@@ -43,0 +55,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76041
57
2117