Skip to content

Commit

Permalink
adds build flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Mar 2, 2015
1 parent 350ff5a commit 18e5580
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var argv =
.alias('d', 'domain')
.alias('e', 'endpoint')
.alias('p', 'project')
.alias('b', 'build', false)
.alias('a', 'add')
.alias('r', 'rem')
.default('e', 'http://surge.sh')
Expand Down
8 changes: 8 additions & 0 deletions lib/middleware/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ module.exports = function(req, next){
headers["rem"] = req.argv.r;


/**
* Perform build on server
*/

if (req.argv.build)
headers["build"] = req.argv.build;


/**
* Progress Bars
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/middleware/whitelist.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var helpers = require("./util/helpers")

module.exports = function(req, next){
var commands = ['h','d','e','a','r','v','V','p','endpoint','project','domain','add','remove','version','verbose','help','$0','_'];
var commands = ['h','b', 'd','e','a','r','v','V','p','endpoint','project','domain','add','remove','version','verbose','help', 'build','$0','_'];

var args = [];
for (param in req.argv) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "surge",
"version": "0.7.3",
"version": "0.7.4",
"description": "the `npm` of web publishing",
"main": "./lib/surge.js",
"bin": "./lib/cli.js",
Expand Down

0 comments on commit 18e5580

Please sign in to comment.