Comparing version 2.1.2 to 2.1.3
19
index.js
@@ -7,2 +7,3 @@ var bole = require('bole') | ||
var getOutput = require('./lib/get-output') | ||
var rimraf = require('rimraf') | ||
@@ -46,10 +47,22 @@ var budo = require('./lib/budo') | ||
var tmp = output.tmp | ||
var tmpFile = output.from | ||
//run watchify server | ||
emitter._start(entries, output, argv) | ||
.on('error', function(err2) { | ||
var msg = "Error running budo on " + argv.port + ': ' + err2 | ||
bail(msg) | ||
.on('error', function(err) { | ||
//Some more helpful error messaging | ||
if (err.message === 'listen EADDRINUSE') | ||
console.error("Port", argv.port, "is not available\n") | ||
throw err | ||
}) | ||
.on('exit', function() { | ||
log.info('closing') | ||
if (tmp && tmpFile) { | ||
//last attempt to remove the bundle file | ||
rimraf(tmpFile, function(err) { | ||
if (err) | ||
log.debug('error cleaning up temp file', err) | ||
}) | ||
} | ||
}) | ||
@@ -56,0 +69,0 @@ }) |
{ | ||
"name": "budo", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "a browserify server for rapid prototyping", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23053
599